-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
57 lines (57 loc) · 1.7 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
{
"env": {
"browser": true
},
"extends": "eslint:all",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018
},
"rules": {
"no-extra-semi": "off",
"no-console": "off",
"no-var": "error",
"sort-imports": "off",
"require-jsdoc": "off",
"prefer-arrow-callback": "off",
"init-declarations": "off",
"no-plusplus": "off",
"no-sync": "off",
"prefer-destructuring": "off",
"prefer-template": "off",
"no-undefined": "off",
"no-param-reassign": "off",
"sort-keys": "off",
"array-element-newline": "off",
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"space-before-function-paren": ["error", "never"],
"func-style": ["error", "declaration"],
"padded-blocks": ["error", "never"],
"func-names": ["error", "never"],
"new-cap": ["error", { "capIsNew": false }],
"one-var": ["error", "never"],
"no-magic-numbers": ["error", { "ignore": [0, 1], "enforceConst": true }],
"max-len": ["error", { "code": 140 }],
"quote-props": ["error", "consistent-as-needed"],
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
"object-shorthand": ["error", "never"],
"operator-linebreak": ["error", "before"],
"object-curly-spacing": ["error", "always"],
"id-length": ["error", { "exceptions": ["P"] }]
}
}