-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc.js
76 lines (76 loc) · 2.06 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
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'airbnb-typescript',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'prettier',
],
plugins: ['@typescript-eslint', 'react', 'prettier'],
env: {
node: true,
},
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
ecmaVersion: 2020,
ecmaFeatures: {
legacyDecorators: true,
},
},
settings: {
react: {
version: '16',
},
},
rules: {
'react/display-name': 0,
'react/require-default-props': 0,
'no-restricted-syntax': 0,
'import/prefer-default-export': 0,
'import/no-named-as-default': 0,
'import/named': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/ban-ts-ignore': 0,
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars-experimental': 0,
'@typescript-eslint/no-use-before-define': [
'error',
{ variables: false, functions: false },
],
'space-before-function-paren': 0,
'no-plusplus': 0,
'react/prop-types': 'off',
'react/jsx-handler-names': 0,
'react/jsx-fragments': 0,
'react/no-unused-prop-types': 0,
'react/jsx-props-no-spreading': 0,
'react/static-property-placement': 0,
'react/no-array-index-key': 0,
'arrow-parens': 1,
'comma-dangle': 1,
'import/extensions': 0,
'@typescript-eslint/no-shadow': 'off',
'no-useless-return': 'off',
'import/no-extraneous-dependencies': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'max-len': [
'warn',
{
code: 80,
tabWidth: 2,
comments: 80,
ignoreComments: true,
ignoreTrailingComments: true,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
},
],
},
};