-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
40 lines (40 loc) · 1.6 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"airbnb-base"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "script"
},
"rules": {
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"camelcase": ["error", {"allow": ["^GM_", "^day_names$", "_useDefault$"]}],
"comma-dangle": ["error", "never"],
"consistent-return": ["error", { "treatUndefinedAsUnspecified": true }], // Good
"curly": ["error", "multi-or-nest", "consistent"], // GOod
"func-names": ["error", "never"],
"global-require": "off",
"indent": ["error", 4, { "SwitchCase": 1 }],
"import/no-unresolved": "off",
"lines-around-directive": ["error", { "before": "never", "after": "always" }],
"max-len": ["error", 216, { "ignoreUrls": true, "ignorePattern": "data:image\/png;base64,", "ignoreTrailingComments": true, "ignoreTemplateLiterals": true }],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 5 }],
"no-console": "off", // Good
"no-param-reassign": "off", // Good
"no-plusplus": "off",
"no-promise-executor-return": "off",
"no-prototype-builtins": "off", // Good
"no-restricted-globals": "off",
"no-underscore-dangle": "off",
"no-use-before-define": ["error", "nofunc"],
"nonblock-statement-body-position": ["error", "below"],
"one-var": "off",
"radix": ["error", "as-needed"],
"strict": ["error", "function"],
"wrap-iife": ["error", "any"]
}
}