forked from rust-lang/docs.rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
71 lines (71 loc) · 2.42 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"root": true,
"extends": [
"eslint:recommended"
],
"env": {
"browser": true,
"es2020": true
},
"rules": {
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"block-scoped-var": "error",
"brace-style": ["error", "1tbs", { "allowSingleLine": false }],
"comma-dangle": ["error", "always-multiline"],
"comma-style": ["error", "last"],
"eol-last": ["error", "always"],
"eqeqeq": "error",
"func-call-spacing": ["error", "never"],
"guard-for-in": "error",
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "strict" }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"linebreak-style": ["error", "unix"],
"max-len": ["error", { "code": 100, "tabWidth": 4 }],
"no-alert": "error",
"no-confusing-arrow": "error",
"no-const-assign": "error",
"no-debugger": "error",
"no-div-regex": "error",
"no-div-regex": "error",
"no-dupe-args": "error",
"no-dupe-else-if": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-ex-assign": "error",
"no-fallthrough": "error",
"no-floating-decimal": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-import-assign": "error",
"no-invalid-regexp": "error",
"no-label-var": "error",
"no-lonely-if": "error",
"no-mixed-operators": "error",
"no-multi-assign": "error",
"no-return-assign": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-template-curly-in-string": "error",
"no-trailing-spaces": "error",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"no-var": ["error"],
"prefer-arrow-callback": ["error"],
"prefer-const": ["error"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-infix-ops": "error"
},
"overrides": [
{
"files": ["gui-tests/*"],
"env": {
"browser": false,
"node": true
}
}
]
}