-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
59 lines (57 loc) · 1.78 KB
/
.eslintrc.cjs
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
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"standard-with-typescript",
"prettier",
],
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"prettier"
],
"rules": {
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "parameter",
"format": ["camelCase", "PascalCase", "UPPER_CASE", "snake_case"],
"leadingUnderscore": "allow"
}
],
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-unused-vars": ["warn"],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "warn",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-invalid-void-type": "warn",
"@typescript-eslint/ban-types": "warn",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/display-name": "warn",
"react/jsx-key": "warn",
"react/no-unescaped-entities": "off",
"no-prototype-builtins": "off",
"n/handle-callback-err" : "off",
"no-case-declarations": "warn",
},
"settings": {
"react": {
"version": "detect"
}
}
}