-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.cjs
58 lines (58 loc) · 1.6 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
57
58
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'airbnb',
'airbnb/hooks',
'airbnb-typescript',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:import/recommended',
'eslint-config-prettier',
],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['react', '@typescript-eslint'],
settings: {
'import/resolver': {
typescript: {
project: './tsconfig.json',
},
},
react: {
version: '18.x',
},
},
rules: {
'no-console': 'off',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/quotes': 'off',
'react/require-default-props': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'no-param-reassign': 'off',
'react/destructuring-assignment': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'react/function-component-definition': [
'error',
{ namedComponents: 'arrow-function' },
],
'import/no-extraneous-dependencies': 'off',
'object-shorthand': 'error',
'react/jsx-props-no-spreading': 'off',
'global-require': 0,
'@typescript-eslint/ban-ts-comment': 'off',
},
};