* 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
28 lines
566 B
JSON
28 lines
566 B
JSON
{
|
|
"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"]
|
|
}
|
|
}
|