-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
79 lines (79 loc) · 2.17 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.json',
},
env: {
browser: true,
node: true,
es6: true,
},
settings: {
react: {
version: 'detect',
},
},
extends: [
'airbnb-typescript',
'airbnb/hooks',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
],
plugins: ['react', 'react-hooks', '@typescript-eslint'],
rules: {
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'consistent-return': 'off',
'no-param-reassign': [
'error',
{ props: true, ignorePropertyModificationsForRegex: ['^draft'] },
],
'no-param-reassign': 'off',
'no-restricted-syntax': 'off',
'no-alert': 'off',
'no-nested-ternary': 'off',
'no-console': ['warn', { allow: ['warn', 'error', 'info', 'table'] }],
'react/jsx-key': ['error', { checkFragmentShorthand: true }],
'react/jsx-props-no-spreading': 'off',
'react/display-name': 'off',
'react/react-in-jsx-scope': 'off',
'react-hooks/rules-of-hooks': 'error',
'react/prop-types': [0],
'react/require-default-props': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-mutable-exports': 'off',
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/no-extra-semi': [0],
'@typescript-eslint/explicit-function-return-type': [0],
'@typescript-eslint/no-empty-function': [0],
'@typescript-eslint/no-var-requires': [0],
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'none',
requireLast: false,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
},
],
'@typescript-eslint/no-explicit-any': [0],
'@typescript-eslint/camelcase': [0],
'@typescript-eslint/explicit-module-boundary-types': [0],
'space-before-function-paren': [
'error',
{
anonymous: 'always',
named: 'never',
asyncArrow: 'always',
},
],
},
}