-
-
Notifications
You must be signed in to change notification settings - Fork 166
/
.eslintrc
49 lines (49 loc) · 1 KB
/
.eslintrc
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
41
42
43
44
45
46
47
48
49
{
"env": {
"browser": true,
"es2020": true,
"greasemonkey": true
},
"overrides": [
{
"files": ["*.user.js"],
"extends": ["plugin:userscripts/recommended"],
"rules": {
"userscripts/align-attributes": ["error", 1],
"userscripts/compat-headers": "error"
},
"settings": {
"userscriptVersions": {
"tampermonkey": ">=4",
"violentmonkey": ">=2",
"greasemonkey": "*"
}
}
}
],
"parserOptions": {
"ecmaVersion": 11
},
"rules": {
"curly": 1,
"dot-location": [2, "property"],
"eqeqeq": 1,
"linebreak-style": [2, "unix"],
"no-else-return": 1,
"no-eval": 2,
"no-octal": 2,
"no-with": 2,
"radix": 2,
"brace-style": 1,
"camelcase": 2,
"indent": [2, "tab"],
"no-array-constructor": 2,
"quotes": [2, "double", {
"allowTemplateLiterals": true,
"avoidEscape": true
}],
"arrow-spacing": 2,
"no-var": 2,
"no-unused-vars": 1
}
}