-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy path.eslintrc.js
33 lines (33 loc) · 1.01 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
module.exports = {
root: true,
extends: [
'react-app',
'airbnb',
'plugin:jsx-a11y/recommended',
'prettier',
'prettier/react',
],
plugins: ['jsx-a11y', 'prettier', 'react-hooks'],
rules: {
semi: 0,
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'prettier/prettier': 'error',
'react/prop-types': 'off',
'react/destructuring-assignment': 'off',
'import/prefer-default-export': 'off',
'no-plusplus': 'off',
'react/prefer-stateless-function': 'off',
'import/no-named-as-default': 'off',
'react/sort-comp': 'off',
'react/no-access-state-in-setstate': 'off',
'react/button-has-type': 'off',
'consistent-return': 'off',
'no-case-declarations': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'react/no-unescaped-entities': 'off',
'react/no-array-index-key': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
},
};