Implement import function
* Add ESLint rules * Change code style : using semi-columns * Change error notification : using pre + wrap to be able to add newlines * Bump version to 1.4.0
This commit is contained in:
parent
2eaa1753a0
commit
c20a6397fc
11 changed files with 433 additions and 336 deletions
28
.eslintrc.json
Normal file
28
.eslintrc.json
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"env": {
|
||||
"webextensions": true,
|
||||
"browser": true,
|
||||
"es2021": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended"
|
||||
],
|
||||
"globals": {
|
||||
"process": "readonly"
|
||||
},
|
||||
"ignorePatterns": ["node_modules"],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "latest",
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
},
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": ["@stylistic/js"],
|
||||
"rules": {
|
||||
"no-console": ["error", {"allow": ["warn", "error"]}],
|
||||
"no-unused-vars": ["error", {"argsIgnorePattern": "^_"}],
|
||||
"@stylistic/js/indent": ["error", "tab"],
|
||||
"@stylistic/js/semi": ["error", "always"]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue