-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.json
More file actions
71 lines (69 loc) · 2.03 KB
/
Copy path.eslintrc.json
File metadata and controls
71 lines (69 loc) · 2.03 KB
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
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2015
},
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"no-console": "warn",
"no-dupe-else-if": "error",
"consistent-return": "error",
"no-fallthrough": "off",
"no-invalid-this": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-param-reassign": "error",
"no-self-compare": "error",
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-return": "error",
"no-shadow": "error",
"require-atomic-updates": "error",
"require-await": "warn",
"yoda": "warn",
"array-bracket-spacing": ["error", "never"],
"block-spacing": "error",
"brace-style": "error",
"comma-dangle": ["error", "never"],
"func-call-spacing": ["error", "never"],
"key-spacing": ["error", { "afterColon": true, "beforeColon": false }],
"keyword-spacing": "error",
"linebreak-style": ["error", "unix"],
"max-len": ["error", { "code": 120 }],
"no-lonely-if": "error",
"no-whitespace-before-property": "error",
"object-curly-newline": ["error", { "minProperties": 5, "multiline": true }],
"object-curly-spacing": ["error", "always"],
"padded-blocks": ["error", "never"],
"sort-keys": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-var": "error",
"prefer-const": "warn",
"prefer-numeric-literals": "error",
"prefer-template": "error"
}
}