forked from alibaba/ChatUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (33 loc) · 818 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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2020,
project: './tsconfig.json',
},
extends: [
'airbnb/hooks',
'airbnb-typescript',
'prettier',
],
env: {
browser: true,
jest: true,
},
plugins: ['compat'],
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',
// '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'],
},
};