/
.eslintrc.json
121 lines (121 loc) · 3.53 KB
/
.eslintrc.json
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"extends": [
"react-app",
"airbnb-typescript",
"prettier"
],
"parserOptions": {
"project": "tsconfig.json"
},
"ignorePatterns": ["/**/*.jsx", "/**/*.d.ts", "/public"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/explicit-member-accessibility": [
"warn",
{
"accessibility": "explicit",
"overrides": {
"constructors": "off"
}
}
],
"@typescript-eslint/member-delimiter-style": [
"off",
{
"multiline": {
"delimiter": "none",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/type-annotation-spacing": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "enum",
"format": [
"PascalCase"
]
},
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": true
}
}
],
"@typescript-eslint/no-shadow": [
"error"
],
"@typescript-eslint/explicit-function-return-type": [
"warn",
{
"allowExpressions": true
}
],
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-explicit-any": "error",
"arrow-parens": [
"off",
"always"
],
"brace-style": [
"off",
"off"
],
"no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"@typescript-eslint/lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"eol-last": "off",
"id-blacklist": "off",
"id-match": "off",
"import/order": "error",
"linebreak-style": "off",
"max-len": "off",
"new-parens": "off",
"newline-per-chained-call": "off",
"no-extra-semi": "off",
"no-invalid-this": "off",
"no-irregular-whitespace": "off",
"no-trailing-spaces": "off",
"no-underscore-dangle": "off",
"quote-props": "off",
"react/jsx-curly-spacing": "off",
"react/jsx-equals-spacing": "off",
"react/jsx-wrap-multilines": "off",
"space-before-function-paren": "off",
"class-methods-use-this": "off",
"space-in-parens": [
"off",
"never"
],
"no-shadow": "off",
"import/prefer-default-export": "off",
"import/no-default-export": "error",
"no-void": "off",
"no-inner-declarations": "off",
"no-plusplus": "off",
"react/require-default-props": "off",
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}]
},
"overrides": [
{
"files": ["**/*.tsx"],
"rules": {
"react/prop-types": "off",
"react/jsx-one-expression-per-line": "off"
}
}
]
}