-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
51 lines (51 loc) · 1.87 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"standard-with-typescript",
"plugin:react/recommended",
"plugin:react/jsx-runtime"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"react"
],
"rules": {
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-extraneous-class": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/consistent-type-definitions": ["warn", "type"],
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/ban-types": "warn",
"no-return-assign": "warn",
"@typescript-eslint/no-invalid-void-type": "warn",
"no-prototype-builtins": "off",
"@typescript-eslint/no-confusing-void-expression": "off",
"one-var": ["warn", {"let": "consecutive"}],
"@typescript-eslint/prefer-nullish-coalescing": ["warn", {"ignoreConditionalTests": true, "ignoreMixedLogicalExpressions": true}],
"@typescript-eslint/restrict-plus-operands": ["warn", {"allowNumberAndString": true}],
"@typescript-eslint/restrict-template-expressions": "off",
"eqeqeq": ["error", "always"],
"max-len": ["warn", { "code": 120, "ignoreComments": true }],
"space-before-function-paren": "off",
"@typescript-eslint/space-before-function-paren": "off"
},
"ignorePatterns": [
"node_modules/",
"build/",
"public/",
"src/global.d.ts",
"src/reset.d.ts",
"vite-env.d.ts",
"vite.config.ts"
]
}