forked from Chasyxx/EnBeat_NEW
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
67 lines (67 loc) · 2.03 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["google"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"root": true,
"rules": {
"arrow-parens": ["error", "as-needed"],
"camelcase": "off",
"comma-dangle": ["error", "never"],
"curly": ["error", "all"],
"dot-notation": "error",
"indent": ["error", "tab", { "flatTernaryExpressions": true }],
"key-spacing": ["error", {
"multiLine": {
"beforeColon": false,
"afterColon": true
}
}],
"keyword-spacing": ["error", { "overrides": {
"catch": { "after": false },
"for": { "after": false },
"if": { "after": false },
"switch": { "after": false },
"while": { "after": false }
} }],
"linebreak-style": ["error", "windows"],
"max-len": ["error", 110, {
"ignoreRegExpLiterals": true,
"ignoreUrls": true
}],
"no-case-declarations": "error",
"no-const-assign": "error",
"no-extra-parens": ["error", "all", {
"conditionalAssign": false,
"nestedBinaryExpressions": false,
"returnAssign": false
}],
"no-extra-semi": "error",
"no-global-assign": ["error", { "exceptions": ["FormData"] }],
"no-labels": ["error", { "allowLoop": true }],
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-tabs": ["error", { "allowIndentationTabs": true }],
"no-undef": "error",
"no-unreachable": "error",
"no-unsafe-optional-chaining": "error",
"no-use-before-define": "error",
"no-useless-concat": "error",
"object-curly-newline": ["error", { "multiline": true }],
"object-curly-spacing": ["error", "always"],
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
"object-shorthand": ["error", "always"],
"one-var": ["error", { "initialized": "never", "uninitialized": "consecutive" }],
"prefer-arrow-callback": "error",
"prefer-destructuring": ["error", { "object": true }],
"quotes": ["error", "single"],
"quote-props": ["error", "as-needed"],
"require-jsdoc": "off",
"space-infix-ops": "error",
"template-curly-spacing": ["error", "always"]
}
}