-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
51 lines (49 loc) · 1.07 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
/* eslint filenames/match-regex: 0 */
module.exports = {
env: {
browser: true,
es2021: true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
extends: ['airbnb', 'prettier'],
plugins: ['prettier', 'filenames', 'react-hooks'],
rules: {
'arrow-body-style': 0,
'no-console': 0,
'import/prefer-default-export': 'off',
'filenames/match-exported': [2, ['kebab']],
'filenames/match-regex': [2, '^([a-z][a-z0-9]*)(-[a-z0-9]+)*$', true],
'jsx-a11y/anchor-is-valid': 0,
'react/jsx-props-no-spreading': 'off',
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
'react/no-array-index-key': 'off',
'jsx-a11y/label-has-associated-control': [
'error',
{
required: {
some: ['nesting', 'id'],
},
},
],
'react/jsx-filename-extension': [
1,
{
extensions: ['.js', '.jsx'],
},
],
},
settings: {
'import/resolver': {
node: {
paths: ['./'],
},
},
},
};