forked from neuralmagic/sparsify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
169 lines (169 loc) · 3 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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
env:
browser: true
es6: true
extends:
- "eslint:recommended"
- "plugin:react/recommended"
globals:
Atomics: readonly
SharedArrayBuffer: readonly
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: 2018
sourceType: module
plugins:
- react
rules:
arrow-parens:
- error
- as-needed
arrow-body-style:
- error
- as-needed
arrow-spacing:
- error
block-scoped-var:
- error
block-spacing:
- error
- always
brace-style:
- error
- 1tbs
- allowSingleLine: true
comma-dangle:
- error
- only-multiline
comma-style:
- error
- last
- exceptions:
ArrayExpression: false
ArrayPattern: false
ArrowFunctionExpression: false
CallExpression: false
FunctionDeclaration: false
FunctionExpression: false
ImportDeclaration: false
ObjectExpression: false
ObjectPattern: false
VariableDeclaration: false
NewExpression: false
comma-spacing:
- error
- after: true
before: false
eqeqeq:
- error
eol-last:
- error
- always
indent:
- error
- 2
- SwitchCase: 1
ObjectExpression: first
ArrayExpression: first
CallExpression:
arguments: off
flatTernaryExpressions: true
FunctionDeclaration:
parameters: first
FunctionExpression:
parameters: first
ignoreComments: false
MemberExpression: 1
VariableDeclarator:
var: 4
const: 4
let: 4
function-paren-newline:
- off
func-style:
- error
- declaration
- allowArrowFunctions: true
jasmine/no-disabled-tests:
- off
jsx-quotes:
- warn
- prefer-single
keyword-spacing:
- error
- before: true
after: true
overrides: {}
linebreak-style:
- error
- unix
no-alert:
- error
no-console:
- off
no-debugger:
- off
no-extra-boolean-cast:
- off
no-extra-parens:
- error
no-eq-null:
- error
no-fallthrough:
- error
no-lonely-if:
- error
no-mixed-spaces-and-tabs:
- off
no-multiple-empty-lines:
- error
- max: 1
no-multi-spaces:
- off
- ignoreEOLComments: false
no-trailing-spaces:
- error
no-undef:
- 2
no-unneeded-ternary:
- error
no-useless-escape:
- off
nonblock-statement-body-position:
- error
- below
object-curly-spacing:
- error
- always
padding-line-between-statements:
- error
- blankLine: "always"
prev: ["const", "let", "var"]
next: "*"
- blankLine: "any"
prev: ["const", "let", "var"]
next: ["const", "let", "var"]
quotes:
- warn
- single
- allowTemplateLiterals: true
react/display-name:
- off
react/prop-types:
- off
react/jsx-uses-vars:
- warn
react/jsx-no-undef:
- off
space-in-parens:
- error
- never
space-before-blocks:
- error
space-before-function-paren:
- error
- never
switch-colon-spacing:
- error
yoda:
- error