-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
32 lines (32 loc) · 987 Bytes
/
.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
// eslint-disable-next-line no-undef
module.exports = {
env: {
browser: true,
es2021: true
},
extends: ['prettier', 'eslint:recommended', 'plugin:react/recommended', 'plugin:react-hooks/recommended', 'plugin:@typescript-eslint/recommended', 'plugin:storybook/recommended'],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: ['react', '@typescript-eslint'],
rules: {
curly: 2,
'no-unused-vars': ['off', {
argsIgnorePattern: '^_',
ignoreRestSiblings: true,
args: 'none'
}],
'react/prop-types': ['off'],
'react/display-name': ['off'],
'@typescript-eslint/ban-ts-comment': ['warn'],
'no-debugger': ['warn'],
'@typescript-eslint/no-unused-vars': ['off'],
'react/react-in-jsx-scope': 'off',
'import/no-anonymous-default-export': [0],
'react/jsx-no-target-blank': [0],
'@typescript-eslint/no-explicit-any': 'off'
}
};