-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
48 lines (48 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module.exports = {
plugins: ['simple-import-sort', 'import', 'react', 'react-hooks', 'jsx-a11y'],
extends: [
'@pauloelias/eslint-config-javascript-standard-core',
'standard-jsx',
'plugin:jsx-a11y/recommended',
'prettier/react'
],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true
},
sourceType: 'module'
},
rules: {
'sort-imports': 'off',
'import/order': 'off',
'simple-import-sort/sort': 2,
'import/first': 2,
'import/newline-after-import': 2,
'import/no-duplicates': 2,
'jsx-a11y/anchor-is-valid': [
2,
{
aspects: ['invalidHref']
}
],
'react-hooks/rules-of-hooks': 2,
'react-hooks/exhaustive-deps': 1,
'react/jsx-uses-vars': 2,
'react/jsx-no-undef': 2,
'jsx-quotes': [2, 'prefer-double'],
'react/prop-types': 0
},
settings: {
react: {
version: 'detect'
}
},
env: {
browser: true,
es2020: true,
jest: true,
node: true
}
}