-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
121 lines (121 loc) · 4.27 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "script",
"ecmaFeatures": {
"impliedStrict": true
}
},
"env": {
"node": true,
"es6": true,
"browser": true
},
"rules": {
"array-bracket-spacing": ["warn", "never"],
"array-callback-return": "error",
"arrow-body-style": ["warn", "as-needed"],
"arrow-spacing": "warn",
"block-scoped-var": "error",
"block-spacing": "warn",
"class-methods-use-this": "warn",
"comma-dangle": ["warn", "always-multiline"],
"comma-spacing": ["warn", { "before": false, "after": true }],
"constructor-super": "warn",
"curly": ["warn", "multi-line"],
"eol-last": ["warn", "always"],
"eqeqeq": "warn",
"for-direction": "warn",
"getter-return": "warn",
"global-require": "warn",
"handle-callback-err": "warn",
"indent": ["warn", 4],
"key-spacing": ["warn", { "beforeColon": false, "afterColon": true }],
"multiline-ternary": ["warn", "always-multiline"],
"no-alert": "warn",
"no-await-in-loop": "warn",
"no-caller": "error",
"no-case-declarations": "error",
"no-class-assign": "error",
"no-cond-assign": "error",
"no-console": "warn",
"no-const-assign": "error",
"no-constant-condition": "warn",
"no-debugger": "warn",
"no-dupe-args": "error",
"no-dupe-class-members": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "warn",
"no-else-return": "warn",
"no-empty-function": "warn",
"no-empty-pattern": "warn",
"no-empty": "warn",
"no-eval": "error",
"no-extra-bind": "warn",
"no-extra-boolean-cast": "warn",
"no-extra-semi": "error",
"no-fallthrough": "warn",
"no-floating-decimal": "error",
"no-func-assign": "error",
"no-implicit-globals": "warn",
"no-implied-eval": "error",
"no-inner-declarations": "warn",
"no-invalid-regexp": "error",
"no-lone-blocks": "warn",
"no-lonely-if": "warn",
"no-loop-func": "warn",
"no-multi-assign": "warn",
"no-multi-spaces": "warn",
"no-nested-ternary": "warn",
"no-obj-calls": "warn",
"no-octal-escape": "error",
"no-octal": "error",
"no-param-reassign": ["warn", { "props": false }],
"no-path-concat": "warn",
"no-redeclare": "error",
"no-return-assign": "warn",
"no-return-await": "warn",
"no-self-assign": "error",
"no-self-compare": "warn",
"no-sync": "warn",
"no-template-curly-in-string": "warn",
"no-this-before-super": "warn",
"no-trailing-spaces": "warn",
"no-undef-init": "warn",
"no-undef": "error",
"no-undefined": "error",
"no-unexpected-multiline": "warn",
"no-unneeded-ternary": "warn",
"no-unreachable": "error",
"no-unsafe-negation": "warn",
"no-unused-expressions": "warn",
"no-unused-vars": "warn",
"no-useless-call": "warn",
"no-useless-computed-key": "warn",
"no-useless-constructor": "warn",
"no-useless-escape": "warn",
"no-useless-rename": "warn",
"no-useless-return": "warn",
"no-var": "warn",
"no-with": "error",
"object-property-newline": "warn",
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"prefer-rest-params": "warn",
"prefer-spread": "warn",
"prefer-template": "warn",
"quotes": ["warn", "single", { "allowTemplateLiterals": true }],
"require-await": "warn",
"require-yield": "error",
"rest-spread-spacing": ["warn", "never"],
"semi-spacing": ["error", { "before": false, "after": true }],
"semi": ["warn", "always"],
"space-before-blocks": "warn",
"space-before-function-paren": ["warn", { "anonymous": "always", "named": "never", "asyncArrow": "always" }],
"template-curly-spacing": ["warn", "never"],
"template-tag-spacing": ["warn", "never"],
"use-isnan": "error",
"vars-on-top": "warn"
}
}