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"]
|
||||
}
|
||||
}
|
||||
15
package.json
Normal file
15
package.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "webextensions-examples",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"devDependencies": {
|
||||
"eslint": "^3.19.0"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint ."
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"babel-eslint": "^7.2.3"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user