-
Notifications
You must be signed in to change notification settings - Fork 21
/
.eslintrc.json
39 lines (39 loc) · 1 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
{
"parser": "@babel/eslint-parser",
"plugins": ["prettier", "unused-imports"],
"extends": ["prettier"],
"env": {
"es6": true,
"browser": true
},
"globals": {
"$": true,
"jQuery": true,
"browser": true,
"ga": true
},
"rules": {
"prettier/prettier": "error",
"no-unused-vars": [1],
"no-alert": 0,
"strict": [2, "never"],
"new-cap": [0],
"consistent-return": 0,
"no-underscore-dangle": 0,
"no-var": [1],
"one-var": [0],
"max-len": [0, { "code": 140, "ignoreUrls": true }],
"comma-dangle": ["error", "always-multiline"],
"arrow-parens": 1,
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
]
}
}