-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
41 lines (41 loc) · 961 Bytes
/
eslint.config.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
module.exports = {
parser: 'babel-eslint',
env: {
browser: true,
commonjs: true,
es6: true,
jest: true,
node: true
},
plugins: [
'react',
'jsx-a11y',
'react-hooks'
],
extends: [
'standard-react',
'plugin:jsx-a11y/recommended',
'@hapi/eslint-config-hapi'
],
rules: {
'react/jsx-indent': ['error', 4],
'react/jsx-indent-props': ['error', 4],
'react/jsx-uses-react': 'off',
'react/jsx-uses-vars': 'warn',
'react/react-in-jsx-scope': 'off',
'react-hooks/exhaustive-deps': 'warn',
'react-hooks/rules-of-hooks': 'error',
'strict': 'off'
},
overrides: [
{
files: ['!src/**'],
parserOptions: {
sourceType: 'script',
ecmaFeatures: {
jsx: true
}
}
}
]
};