-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
29 lines (29 loc) · 860 Bytes
/
.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
{
"env": {
"browser": true,
"webextensions": true
},
"extends": "airbnb",
"parser": "babel-eslint",
"rules": {
"func-names": 0,
"no-nested-ternary": 0,
"max-len": ["error", {
"code": 100,
"ignorePattern": "(?:(`|'|\")[^\\1]{70,}\\1)|eslint-disable-line|(?://.*)"
}],
"arrow-parens": ["error", "always"],
"no-underscore-dangle": 0,
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"no-use-before-define": ["error", "nofunc"],
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-mixed-operators": ["error", { "allowSamePrecedence": true }],
"indent": ["error", 2, { "flatTernaryExpressions": true, "SwitchCase": 1 }]
}
}