-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
42 lines (42 loc) · 1001 Bytes
/
index.js
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
module.exports = {
extends: [
'standard',
'standard-jsx',
'standard-react'
],
plugins: [
'react-hooks'
],
parser: '@babel/eslint-parser',
env: {
mocha: true,
jest: true
},
rules: {
'no-console': 'error',
'react/no-unused-prop-types': 'off',
'key-spacing': ['error', {mode: 'strict'}],
'object-curly-spacing': ['error', 'never'],
'array-bracket-spacing': ['error', 'never'],
'max-len': ['error', {code: 120, ignoreComments: true}],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'react/no-did-update-set-state': 'off',
'react/jsx-fragments': 'off',
'react/jsx-no-bind': ['error', {allowFunctions: true, allowArrowFunctions: true}],
'multiline-ternary': 'off',
'react/jsx-handler-names': 'off'
},
globals: {
FormData: false,
describe: false,
before: false,
beforeEach: false,
it: false
},
settings: {
react: {
version: 'detect'
}
}
}