-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
37 lines (37 loc) · 955 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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2020,
project: './tsconfig.json',
},
extends: [
'airbnb',
'airbnb-typescript',
'prettier',
'prettier/react',
'prettier/@typescript-eslint',
],
env: {
browser: true,
// jest: true,
},
plugins: ['compat', 'react-hooks'],
rules: {
'compat/compat': 'error',
'import/prefer-default-export': 'off',
'no-underscore-dangle': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-props-no-spreading': 'off',
'react/no-array-index-key': 'off',
'react/require-default-props': 'off',
'react/prop-types': 'off',
'react-hooks/rules-of-hooks': 'error',
"react-hooks/exhaustive-deps": "warn",
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'jsx-a11y/label-has-for': 'off',
},
settings: {
polyfills: ['IntersectionObserver', 'Promise'],
},
};