-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
43 lines (43 loc) · 1.2 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
module.exports = {
extends: ['airbnb', 'prettier', 'prettier/react'],
plugins: ['react', 'react-hooks', 'jest', 'prettier'],
parser: 'babel-eslint',
rules: {
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/no-unused-prop-types': 1,
'react/forbid-prop-types': 1,
'react/no-unescaped-entities': 1,
'react/require-default-props': 1,
'react/no-did-mount-set-state': 1,
'react/sort-comp': 1,
'react/prop-types': 1,
'import/first': 1,
'import/prefer-default-export': 1,
camelcase: 1,
'jsx-a11y/click-events-have-key-events': 1,
'jsx-a11y/no-static-element-interactions': 1,
'jsx-a11y/anchor-is-valid': 1,
'jsx-a11y/alt-text': 1,
'jsx-a11y/mouse-events-have-key-events': 1,
'jsx-a11y/no-noninteractive-element-interactions': 1,
'no-unused-expressions': 1,
'no-unused-vars': 1,
'no-nested-ternary': 1,
'no-useless-constructor': 1,
'no-restricted-globals': 1,
'array-callback-return': 1,
'consistent-return': 1,
'no-new': 1,
'import/first': 1,
'no-use-before-define': 1,
'no-shadow': 1
},
settings: {
react: {
version: 'detect'
}
},
env: {
browser: true
}
};