-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.js
97 lines (92 loc) · 2.59 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
module.exports = {
extends: ['prettier', 'airbnb', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
env: {
browser: true,
node: true,
},
plugins: ['@typescript-eslint'],
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
},
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
legacyDecorators: true,
},
},
rules: {
semi: ['error', 'never'],
'comma-dangle': ['error', 'only-multiline'],
'arrow-parens': ['error', 'as-needed'],
'consistent-return': 'off',
'no-restricted-globals': 'off',
'global-require': 'off',
'no-param-reassign': [
'error',
{
props: false,
},
],
'no-plusplus': 'off',
'object-curly-newline': 'off',
'import/order': [
'error',
{
'newlines-between': 'always',
},
],
'class-methods-use-this': 'off',
'no-use-before-define': 'off',
radix: 'off',
'operator-linebreak': 'off',
'implicit-arrow-linebreak': 'off',
'no-restricted-syntax': 'off',
'max-len': 'off',
'no-confusing-arrow': 'off',
'function-paren-newline': 'off',
'react/jsx-filename-extension': [
0,
{
extensions: ['.ts', 'tsx'],
},
],
'react/jsx-wrap-multilines': 'off',
'react/prop-types': 'off',
'react/destructuring-assignment': 'off',
'react/no-danger': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/function-component-definition': 'off',
'react/react-in-jsx-scope': 'off',
'react/require-default-props': 'off',
'react/jsx-props-no-spreading': 'off',
'react/no-array-index-key': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/alt-text': 'off',
'import/no-dynamic-require': 'off',
'import/extensions': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
indent: 'off',
},
}