-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
56 lines (55 loc) · 1.51 KB
/
.eslintrc.cjs
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
55
56
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
'cypress/globals': true,
},
extends: [
'airbnb',
'plugin:react/recommended',
'plugin:prettier/recommended',
'plugin:storybook/recommended',
],
settings: {
'import/resolver': {
alias: [['@', './src']],
},
},
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
},
},
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', 'react-hooks', 'prettier', 'cypress'],
rules: {
'react/react-in-jsx-scope': 'off',
'import/no-extraneous-dependencies': 'off',
'react/prop-types': 'off',
'react/jsx-props-no-spreading': 'off',
'eslint-disable no-return-assign': 'off',
'eslint-disable react/button-has-type': 'off',
'linebreak-style': 'off',
'no-alert': 'off',
'no-underscore-dangle': 'off',
'import/prefer-default-export': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'jsx-a11y/heading-has-content': 'off',
'no-return-assign': 'off',
'react/button-has-type': 'off',
'no-plusplus': 'off',
'default-param-last': 'off',
'no-nested-ternary': 'off',
},
};