-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
40 lines (40 loc) · 1.38 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018
},
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jquery": true
},
"root": true,
"extends": "airbnb-base/legacy",
"rules": {
"class-methods-use-this": 0,
"curly": ["error", "all"],
"func-names": 0,
"global-require": "off",
"import/no-unresolved": "off",
"indent": ["error", 4, { "SwitchCase": 1, "VariableDeclarator": 1 }],
"max-len": ["error", { "code": 200, "comments": 250 }],
"no-dupe-keys": 2,
"no-plusplus": 0,
"no-shadow": ["error", { "allow": ["err", "callback"]}],
"prefer-const": 2,
"vars-on-top": "off",
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": ["return", "block", "block-like"] },
{ "blankLine": "always", "prev": "directive", "next": "*" },
{ "blankLine": "always", "prev": ["const", "let", "var", "block", "block-like"], "next": "*"},
{ "blankLine": "any", "prev": "directive", "next": "directive" },
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]}
],
"no-continue": 0,
"no-else-return": 0,
"no-param-reassign": 0,
"one-var": 0
}
}