-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.eslintrc.yml
48 lines (44 loc) · 1.26 KB
/
.eslintrc.yml
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
root: true
parserOptions:
ecmaVersion: "latest"
env:
es6: true
node: true
extends:
"eslint:all"
rules:
array-bracket-newline: ["error", "consistent"]
arrow-parens: ["error", "as-needed"]
func-style: ["error", "declaration"]
function-call-argument-newline: ["error", "consistent"]
max-len: ["error", 160, {
"ignoreComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}]
max-lines-per-function: ["error", 500]
max-lines: ["error", 640]
max-statements: ["error", 20]
no-console: ["off"]
no-magic-numbers: ["off"]
no-ternary: ["off"]
no-use-before-define: ["error", "nofunc"]
object-curly-spacing: ["error", "always"]
object-property-newline: ["error", { "allowAllPropertiesOnSameLine": true }]
one-var: ["error", "never"]
padded-blocks: ["off"]
prefer-destructuring: ["error", {
"array": false,
"object": false
}, {
"enforceForRenamedProperties": false
}]
quote-props: ["error", "as-needed"]
sort-keys: ["off"]
space-before-function-paren: ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}]