-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.js
40 lines (39 loc) · 1.18 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
const path = require('path');
module.exports = {
extends: ['react-app', 'prettier', 'prettier/flowtype', 'prettier/react'],
plugins: ['prettier', 'flowtype', 'react-hooks'],
rules: {
'arrow-parens': ['error', 'as-needed'],
'comma-dangle': ['error', 'always-multiline'],
'max-len': [
'error',
199,
{
ignorePattern: ' // eslint-disable-line ',
},
],
'react/prefer-stateless-function': 'off',
'no-underscore-dangle': 'off',
'no-console': 'off',
'import/no-extraneous-dependencies': 'error',
'react/forbid-prop-types': 'off',
'react/jsx-filename-extension': [
'error',
{
extensions: ['.js'],
},
],
'jsx-a11y/no-static-element-interactions': 'off',
'react/require-default-props': 'off',
'react/no-array-index-key': 'off',
'no-unused-vars': 'error',
'react/no-deprecated': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'prettier/prettier': 'error',
'no-use-before-define': 'error',
'react/prop-types': 'error',
'react/no-unused-prop-types': 'error',
'react/sort-prop-types': ['error', {'sortShapeProp': true}],
},
};