Skip to content

Commit cba1999

Browse files
Merge pull request #11 from Nullifiers/eslint
Add ESLint
2 parents 49b234c + 9c6bd2c commit cba1999

File tree

5 files changed

+1573
-9
lines changed

5 files changed

+1573
-9
lines changed

.eslintrc.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"webextensions": true
6+
},
7+
"extends": "eslint:recommended",
8+
"globals": {
9+
"chrome": true
10+
},
11+
"parserOptions": {
12+
"ecmaVersion": 6,
13+
"sourceType": "module"
14+
},
15+
"rules": {
16+
"class-methods-use-this": "warn",
17+
"consistent-return": "warn",
18+
"curly": [
19+
"error",
20+
"multi-line"
21+
],
22+
"default-case": "error",
23+
"dot-notation": "warn",
24+
"eqeqeq": "error",
25+
"indent": [
26+
"warn",
27+
"tab"
28+
],
29+
"max-len": [
30+
"warn",
31+
{
32+
"code": 100
33+
}
34+
],
35+
"no-unused-expressions": "error",
36+
"no-useless-call": "error",
37+
"no-useless-concat": "error",
38+
"no-useless-return": "error"
39+
}
40+
}

0 commit comments

Comments
 (0)