-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
44 lines (44 loc) · 1.19 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
module.exports = {
ignorePatterns: ['.env'],
extends: ['airbnb', 'airbnb/hooks', 'plugin:prettier/recommended'],
rules: {
'prettier/prettier': 'off',
'import/prefer-default-export': 'off',
'consistent-return': 'off',
'no-console': 'off',
'no-return-await': 'off',
'no-underscore-dangle': 'off',
'no-undef': 'off',
'no-unused-vars': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-uses-react': 'off',
'no-param-reassign': 'off',
'dot-notation': 'off',
'react/jsx-boolean-value': 'off',
'react/forbid-prop-types': 'off',
'jsx-a11y/label-has-associated-control': [
'error',
{
labelComponents: [],
labelAttributes: [],
controlComponents: [],
assert: 'either',
depth: 25,
},
],
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'react/forbid-prop-types': 'off',
'no-unused-expressions': 'off',
'array-callback-return': 'off',
'react-hooks/exhaustive-deps': 'off',
},
settings: {
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
};