-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
54 lines (54 loc) · 1.14 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
52
53
54
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'react-app',
'react-app/jest',
'airbnb',
'airbnb/hooks',
'prettier',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', 'prettier', 'simple-import-sort'],
rules: {
semi: 0,
'react/require-default-props': 0,
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/prop-types': 0,
'react/react-in-jsx-scope': 'off',
'react/function-component-definition': [
2,
{ namedComponents: 'arrow-function' },
],
'import/extensions': [1, 'never'],
'import/prefer-default-export': 'off',
'no-undef': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'sort-imports': 'off',
'import/order': 'off',
'no-shadow': 'error',
'prettier/prettier': [
'error',
{
semi: false,
singleQuote: true,
},
],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx'],
},
},
},
}