-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
140 lines (134 loc) · 3.44 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"extends": "eslint:recommended",
"env": {
"node": true,
"es6": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 8,
"ecmaFeatures": {
"blockBindings": true,
"forOf": true,
"modules": true
}
},
"rules": {
"for-direction": 2,
"getter-return": 2,
"no-await-in-loop": 2,
"no-console": 1,
"no-debugger": 1,
"no-extra-parens": 1,
"no-template-curly-in-string": 1,
"valid-jsdoc": 1,
"array-callback-return": 2,
"block-scoped-var": 1,
"complexity": [1, 10],
"consistent-return": 1,
"curly": 1,
"default-case": 2,
"dot-location": [1, "property"],
"dot-notation": 2,
"eqeqeq": [2, "smart"],
"guard-for-in": 1,
"no-alert": 1,
"no-caller": 2,
"no-empty-function": 1,
"no-eval": 2,
"no-extra-bind": 1,
"no-extra-label": 1,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-invalid-this": 1,
"no-iterator": 2,
"no-loop-func": 2,
"no-multi-spaces": 1,
"no-octal-escape": 2,
"no-proto": 2,
"no-return-assign": 1,
"no-return-await": 2,
"no-script-url": 2,
"no-sequences": 2,
"no-self-compare": 2,
"no-throw-literal": 1,
"no-unmodified-loop-condition": 1,
"no-unused-expressions": 1,
"no-useless-call": 1,
"no-useless-concat": 1,
"no-useless-escape": 1,
"no-useless-return": 1,
"no-void": 1,
"no-warning-comments": [1, { "terms": ["fixme"], "location": "anywhere" }],
"no-with": 1,
"prefer-promise-reject-errors": 1,
"require-await": 1,
"wrap-iife": 1,
"yoda": 1,
"no-label-var": 2,
"no-unused-vars": [1, {
"vars": "all",
"args": "after-used"
}],
"array-bracket-spacing": [1, "never"],
"block-spacing": 1,
"brace-style": [1, "1tbs", { "allowSingleLine": true }],
"camelcase": [1, {
"properties": "never"
}],
"comma-dangle": [1, "never"],
"comma-spacing": [1, { "before": false, "after": true }],
"comma-style": 1,
"computed-property-spacing": [1, "never"],
"eol-last": [1, "always"],
"func-call-spacing": [1, "never"],
"function-paren-newline": [2, "consistent"],
"implicit-arrow-linebreak": [1, "beside"],
"indent": [1, "tab", { "SwitchCase": 1 }],
"key-spacing": [1, { "beforeColon": false, "afterColon": true }],
"keyword-spacing": 1,
"linebreak-style": [2, "unix"],
"lines-between-class-members": [1, "always"],
"max-depth": [1, { "max": 4 }],
"max-len": [1, { "code": 120, "tabWidth": 4, "ignoreRegExpLiterals": true, "ignoreStrings": true }],
"max-lines": [1, { "max": 300, "skipBlankLines": true, "skipComments": true }],
"max-params": [1, 5],
"max-statements": [1, 25],
"no-continue": 1,
"no-mixed-spaces-and-tabs": 1,
"no-multiple-empty-lines": [1, {
"max": 2,
"maxBOF": 0,
"maxEOF": 1
}],
"no-negated-condition": 1,
"no-trailing-spaces": 1,
"no-underscore-dangle": 0,
"no-whitespace-before-property": 1,
"operator-linebreak": [1, "after"],
"quote-props": [1, "as-needed"],
"quotes": [2, "single", "avoid-escape"],
"semi": [1, "always"],
"semi-spacing": [1, { "before": false, "after": true }],
"space-before-function-paren": [1, "always"],
"spaced-comment": [1, "always"],
"arrow-parens": [1, "always"],
"arrow-spacing": 1,
"generator-star-spacing": [1, { "before": true, "after": false }],
"no-confusing-arrow": 1,
"no-duplicate-imports": 2,
"no-useless-computed-key": 1,
"no-var": 2,
"object-shorthand": 1,
"template-curly-spacing": 1
},
"overrides": [
{
"files": "*.spec.js",
"rules": {
"no-console": 0
}
}
]
}