forked from wildan3105/github-langs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
75 lines (75 loc) · 2.48 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
{
"rules": {
"arrow-body-style":"error",
"array-bracket-spacing":"error",
"array-callback-return":"error",
"arrow-parens":"error",
"arrow-spacing":"error",
"block-scoped-var": 2,
"brace-style": [2, "1tbs"],
"comma-dangle":["error","never"],
"comma-style":"error",
"computed-property-spacing": [2, "never"],
"curly": 2,
"default-case": 0,
"dot-notation":"error",
"eol-last":"error",
"eqeqeq": ["error", "smart"],
"func-style": ["error", "expression"],
"indent":"error",
"keyword-spacing":"error",
"max-depth": ["error", 4],
"max-statements": [1, 30],
"newline-per-chained-call":"error",
"no-array-constructor":"error",
"no-confusing-arrow":"error",
"no-console":0,
"no-const-assign":"error",
"no-dupe-class-members":"error",
"no-duplicate-imports":"error",
"no-else-return": 0,
"no-eval":"warn",
"no-extend-native": 2,
"no-var":"warn",
"no-new-object":"error",
"no-useless-escape":"error",
"no-new-func":"error",
"no-useless-constructor":"error",
"no-iterator":"error",
"no-restricted-syntax":"error",
"no-restricted-properties":"error",
"no-undef":"error",
"no-nested-ternary":"error",
"no-underscore-dangle":"error",
"no-mixed-spaces-and-tabs": 2,
"no-trailing-spaces": 2,
"no-use-before-define": "error",
"no-whitespace-before-property":"error",
"no-cond-assign": [2, "except-parens"],
"no-unused-vars": [1, {"vars": "local", "args": "none"}],
"no-loop-func":"error",
"object-shorthand":"error",
"object-curly-spacing": [2, "always"],
"prefer-rest-params":"error",
"prefer-spread":"error",
"prefer-arrow-callback":"error",
"prefer-const": "error",
"prefer-template":"error",
"quote-props": [1, "consistent-as-needed"],
"quotes": [1, "single"],
"radix":["error","as-needed"],
"semi": ["error", "always"],
"space-unary-ops": 2,
"spaced-comment":"error",
"space-before-blocks":"error",
"space-in-parens":"error",
"template-curly-spacing":["error","never"],
"wrap-iife":["error","any"]
},
"extends": "eslint:recommended",
"env": {
"es6":true,
"browser": true,
"node": true
}
}