-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.js
48 lines (48 loc) 路 1.43 KB
/
.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
40
41
42
43
44
45
46
47
48
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
createDefaultProgram: true,
project: './packages/**/tsconfig.json',
},
extends: [
'airbnb',
'airbnb/hooks',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:react/recommended',
'prettier',
],
settings: {
'import/resolver': {
node: {
extensions: ['.ts', '.tsx'],
},
},
},
env: {
browser: true,
},
rules: {
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/unbound-method': 'off',
'arrow-body-style': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'no-shadow': 'off',
'no-use-before-define': 'off',
'no-void': 'off',
'react/default-props-match-prop-types': 'off',
'react/destructuring-assignment': 'off',
'react/jsx-filename-extension': ['warn', { extensions: ['.tsx'] }],
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'off',
'react/static-property-placement': 'off',
},
};