-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
60 lines (60 loc) · 1.51 KB
/
.eslintrc.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
module.exports = {
root: true,
extends: ['airbnb', 'airbnb/hooks', 'plugin:prettier/recommended'],
parser: 'babel-eslint',
settings: {
'import/resolver': {
'babel-module': {},
},
},
rules: {
semi: [2, 'never'],
'react/jsx-filename-extension': [
1,
{
extensions: ['.js'],
},
],
'react/jsx-wrap-multilines': 0,
'react/require-default-props': 0,
'global-require': [0],
'no-confusing-arrow': ['off'],
'jsx-a11y/no-static-element-interactions': 0,
'jsx-a11y/anchor-has-content': 0,
'jsx-a11y/anchor-is-valid': 0,
'jsx-a11y/click-events-have-key-events': 0,
'react/forbid-prop-types': 0,
'no-shadow': 0,
camelcase: 0,
'no-mixed-operators': 0,
'no-unused-vars': [
'error',
{
ignoreRestSiblings: true,
caughtErrors: 'none',
},
],
'no-multiple-empty-lines': [
'error',
{
max: 1,
},
],
'import/no-extraneous-dependencies': 0,
'import/prefer-default-export': 0,
'import/extensions': 0,
'lines-between-class-members': ['error', 'never'],
'object-curly-newline': 0,
'function-paren-newline': 0,
'react/no-array-index-key': 0,
'no-restricted-globals': 0,
'react/no-did-mount-set-state': 0,
'react-native/no-inline-styles': 0,
radix: ['error', 'as-needed'],
'react/jsx-fragments': 0,
'react/jsx-props-no-spreading': 0,
'react/state-in-constructor': 0,
'prettier/prettier': 'error',
'no-catch-shadow': 0,
},
}