-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
97 lines (97 loc) · 2.13 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:cypress/recommended",
"plugin:react-hooks/recommended",
"plugin:react/recommended"
],
"ignorePatterns": [
"build",
"coverage",
"dist",
"node_modules",
"scripts"
],
"noInlineConfig": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"react-hooks",
"react"
],
"rules": {
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/prefer-for-of": "error",
"cypress/no-unnecessary-waiting": "off",
"eqeqeq": "error",
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"max-classes-per-file": "error",
"max-lines": [
"error",
1000
],
"max-params": [
"warn",
3
],
"no-alert": "warn",
"no-console": "warn",
"no-debugger": "warn",
"no-empty": "warn",
"no-multiple-empty-lines": "warn",
"no-undef": "warn",
"no-var": "error",
"prefer-const": "error",
"prefer-template": "error",
"quotes": [
"error",
"double"
],
"react/button-has-type": "error",
"react/destructuring-assignment": [
"error",
"always"
],
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function"
}
],
"react/hook-use-state": "error",
"react/react-in-jsx-scope": "off",
"react/jsx-closing-bracket-location": "error",
"react/jsx-closing-tag-location": "error",
"semi": [
"error",
"always"
]
},
"settings": {
"react": {
"version": "detect"
}
}
}