|
@@ -0,0 +1,184 @@
|
|
1
|
+module.exports = {
|
|
2
|
+ env: {
|
|
3
|
+ es6: true
|
|
4
|
+ },
|
|
5
|
+
|
|
6
|
+ parser: 'babel-eslint',
|
|
7
|
+
|
|
8
|
+ plugins: ['react', 'react-hooks', 'jsx', 'react-native'],
|
|
9
|
+
|
|
10
|
+ rules: {
|
|
11
|
+
|
|
12
|
+ 'no-cond-assign': 1,
|
|
13
|
+ 'no-console': 0,
|
|
14
|
+ 'no-const-assign': 2,
|
|
15
|
+ 'no-constant-condition': 0,
|
|
16
|
+ 'no-control-regex': 1,
|
|
17
|
+ 'no-debugger': 1,
|
|
18
|
+ 'no-dupe-class-members': 2,
|
|
19
|
+ 'no-dupe-keys': 2,
|
|
20
|
+ 'no-empty': 0,
|
|
21
|
+ 'no-ex-assign': 1,
|
|
22
|
+ 'no-extra-boolean-cast': 1,
|
|
23
|
+ 'no-extra-parens': 0,
|
|
24
|
+ 'no-extra-semi': 1,
|
|
25
|
+ 'no-func-assign': 1,
|
|
26
|
+ 'no-inner-declarations': 0,
|
|
27
|
+ 'no-invalid-regexp': 1,
|
|
28
|
+ 'no-negated-in-lhs': 1,
|
|
29
|
+ 'no-obj-calls': 1,
|
|
30
|
+ 'no-regex-spaces': 1,
|
|
31
|
+ 'no-reserved-keys': 0,
|
|
32
|
+ 'no-sparse-arrays': 1,
|
|
33
|
+ 'no-unreachable': 2,
|
|
34
|
+ 'use-isnan': 1,
|
|
35
|
+ 'valid-jsdoc': 0,
|
|
36
|
+ 'valid-typeof': 1,
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+ 'block-scoped-var': 0,
|
|
41
|
+ complexity: 0,
|
|
42
|
+ 'consistent-return': 0,
|
|
43
|
+ curly: 1,
|
|
44
|
+ 'default-case': 0,
|
|
45
|
+ 'dot-notation': 1,
|
|
46
|
+ eqeqeq: [1, 'allow-null'],
|
|
47
|
+ 'guard-for-in': 0,
|
|
48
|
+ 'no-alert': 1,
|
|
49
|
+ 'no-caller': 1,
|
|
50
|
+ 'no-div-regex': 1,
|
|
51
|
+ 'no-else-return': 0,
|
|
52
|
+ 'no-eq-null': 0,
|
|
53
|
+ 'no-eval': 2,
|
|
54
|
+ 'no-extend-native': 1,
|
|
55
|
+ 'no-extra-bind': 1,
|
|
56
|
+ 'no-fallthrough': 1,
|
|
57
|
+ 'no-floating-decimal': 1,
|
|
58
|
+ 'no-implied-eval': 1,
|
|
59
|
+ 'no-labels': 1,
|
|
60
|
+ 'no-iterator': 1,
|
|
61
|
+ 'no-lone-blocks': 1,
|
|
62
|
+ 'no-loop-func': 0,
|
|
63
|
+ 'no-multi-str': 0,
|
|
64
|
+ 'no-native-reassign': 0,
|
|
65
|
+ 'no-new': 1,
|
|
66
|
+ 'no-new-func': 2,
|
|
67
|
+ 'no-new-wrappers': 1,
|
|
68
|
+ 'no-octal': 1,
|
|
69
|
+ 'no-octal-escape': 1,
|
|
70
|
+ 'no-proto': 1,
|
|
71
|
+ 'no-redeclare': 0,
|
|
72
|
+ 'no-return-assign': 1,
|
|
73
|
+ 'no-script-url': 1,
|
|
74
|
+ 'no-self-compare': 1,
|
|
75
|
+ 'no-sequences': 1,
|
|
76
|
+ 'no-unused-expressions': 0,
|
|
77
|
+ 'no-void': 1,
|
|
78
|
+ 'no-warning-comments': 0,
|
|
79
|
+ 'no-with': 1,
|
|
80
|
+ radix: 1,
|
|
81
|
+ 'semi-spacing': 1,
|
|
82
|
+ 'vars-on-top': 0,
|
|
83
|
+ 'wrap-iife': 0,
|
|
84
|
+ yoda: 1,
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+ 'no-catch-shadow': 1,
|
|
89
|
+ 'no-delete-var': 1,
|
|
90
|
+ 'no-label-var': 1,
|
|
91
|
+ 'no-shadow': 1,
|
|
92
|
+ 'no-shadow-restricted-names': 1,
|
|
93
|
+ 'no-undef': 2,
|
|
94
|
+ 'no-undefined': 0,
|
|
95
|
+ 'no-undef-init': 1,
|
|
96
|
+ 'no-unused-vars': [1, { vars: 'all', args: 'none', ignoreRestSiblings: true }],
|
|
97
|
+ 'no-use-before-define': 0,
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+ 'handle-callback-err': 1,
|
|
102
|
+ 'no-mixed-requires': 1,
|
|
103
|
+ 'no-new-require': 1,
|
|
104
|
+ 'no-path-concat': 1,
|
|
105
|
+ 'no-process-exit': 0,
|
|
106
|
+ 'no-restricted-modules': 1,
|
|
107
|
+ 'no-sync': 0,
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+ 'key-spacing': 0,
|
|
112
|
+ 'keyword-spacing': 1,
|
|
113
|
+ 'jsx-quotes': [1, 'prefer-double'],
|
|
114
|
+ 'comma-spacing': 0,
|
|
115
|
+ 'no-multi-spaces': 0,
|
|
116
|
+ 'brace-style': 0,
|
|
117
|
+ camelcase: 0,
|
|
118
|
+ 'consistent-this': 1,
|
|
119
|
+ 'eol-last': 1,
|
|
120
|
+ 'func-names': 0,
|
|
121
|
+ 'func-style': 0,
|
|
122
|
+ 'new-cap': 0,
|
|
123
|
+ 'new-parens': 1,
|
|
124
|
+ 'no-nested-ternary': 0,
|
|
125
|
+ 'no-array-constructor': 1,
|
|
126
|
+ 'no-empty-character-class': 1,
|
|
127
|
+ 'no-lonely-if': 0,
|
|
128
|
+ 'no-new-object': 1,
|
|
129
|
+ 'no-spaced-func': 1,
|
|
130
|
+ 'no-ternary': 0,
|
|
131
|
+ 'no-trailing-spaces': 1,
|
|
132
|
+ 'no-underscore-dangle': 0,
|
|
133
|
+ 'no-mixed-spaces-and-tabs': 1,
|
|
134
|
+ quotes: [1, 'single', 'avoid-escape'],
|
|
135
|
+ 'quote-props': 0,
|
|
136
|
+ semi: 1,
|
|
137
|
+ 'sort-vars': 0,
|
|
138
|
+ 'space-in-brackets': 0,
|
|
139
|
+ 'space-in-parens': 0,
|
|
140
|
+ 'space-infix-ops': 1,
|
|
141
|
+ 'space-unary-ops': [1, { words: true, nonwords: false }],
|
|
142
|
+ 'max-nested-callbacks': 0,
|
|
143
|
+ 'one-var': 0,
|
|
144
|
+ 'wrap-regex': 0,
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+ 'max-depth': 0,
|
|
149
|
+ 'max-len': 0,
|
|
150
|
+ 'max-params': 0,
|
|
151
|
+ 'max-statements': 0,
|
|
152
|
+ 'no-bitwise': 1,
|
|
153
|
+ 'no-plusplus': 0,
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+ 'react/display-name': 0,
|
|
158
|
+ 'react/jsx-boolean-value': 0,
|
|
159
|
+ 'react/jsx-no-comment-textnodes': 1,
|
|
160
|
+ 'react/jsx-no-duplicate-props': 2,
|
|
161
|
+ 'react/jsx-no-undef': 2,
|
|
162
|
+ 'react/jsx-sort-props': 0,
|
|
163
|
+ 'react/jsx-uses-react': 1,
|
|
164
|
+ 'react/jsx-uses-vars': 1,
|
|
165
|
+ 'react/no-did-mount-set-state': 1,
|
|
166
|
+ 'react/no-did-update-set-state': 1,
|
|
167
|
+ 'react/no-multi-comp': 0,
|
|
168
|
+ 'react/no-string-refs': 1,
|
|
169
|
+ 'react/no-unknown-property': 0,
|
|
170
|
+ 'react/prop-types': 0,
|
|
171
|
+ 'react/react-in-jsx-scope': 1,
|
|
172
|
+ 'react/self-closing-comp': 1,
|
|
173
|
+ 'react/wrap-multilines': 0,
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+ 'react-hooks/rules-of-hooks': 'error',
|
|
178
|
+ 'react-hooks/exhaustive-deps': 'error',
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+ 'react-native/no-inline-styles': 1
|
|
183
|
+ }
|
|
184
|
+};
|