mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
Add ESLint for this project
This commit is contained in:
22
.eslintrc.json
Normal file
22
.eslintrc.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"root": true,
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 6
|
||||
},
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
"webextensions": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended"
|
||||
],
|
||||
"rules": {
|
||||
"no-console": 0,
|
||||
"no-unused-vars": ["warn", { "vars": "all", "args": "all" } ],
|
||||
"no-undef": ["warn"],
|
||||
"no-proto": ["error"],
|
||||
"prefer-arrow-callback": ["warn"],
|
||||
"prefer-spread": ["warn"]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user