-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.js
39 lines (39 loc) · 855 Bytes
/
.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
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true
}
},
plugins: ['react-hooks'],
env: {
browser: true,
node: true,
es6: true,
jest: true
},
extends: [
'omaha-prime-grade',
'plugin:react/recommended'
],
globals: {
cy: true,
describeOnlyOnLinux: true
},
rules: {
'react/react-in-jsx-scope': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'compat/compat': 'off',
'valid-jsdoc': 'off',
'no-magic-numbers': ['warn', {
ignore: [-1, 0, 1, 2, 3, 10, 100]
}]
},
reportUnusedDisableDirectives: true,
settings: {
react: {
version: '16.8'
}
}
};