-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
159 lines (159 loc) · 4.76 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"$schema": "https://json.schemastore.org/eslintrc",
"extends": ["airbnb", "prettier"],
"plugins": ["prettier"],
"env": {
"es2020": true
},
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"endOfLine": "auto"
}
],
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-await-in-loop": "off",
"no-continue": "off",
"no-plusplus": "off",
"no-bitwise": "off",
"no-empty": "off",
"consistent-return": "off",
"no-promise-executor-return": "off",
"class-methods-use-this": "off",
"import/no-cycle": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_|[pP]rops$"
}
],
"@typescript-eslint/return-await": "off"
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx", "**/*.mts"],
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"@unocss",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:react/recommended",
"airbnb",
"airbnb-typescript",
"prettier"
],
"parserOptions": {
"project": ["./tsconfig.json"]
},
"plugins": [
"@typescript-eslint",
"unused-imports",
"react",
"react-hooks",
"prettier"
],
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"endOfLine": "auto"
}
],
"react/no-deprecated": 2,
"react/react-in-jsx-scope": 0,
"react/display-name": [
1,
{
"ignoreTranspilerName": false
}
],
"react/jsx-no-bind": "off",
"react/jsx-no-comment-textnodes": 2,
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-target-blank": 2,
"react/jsx-no-undef": 2,
"react/jsx-tag-spacing": [
2,
{
"beforeSelfClosing": "always"
}
],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/jsx-key": [
2,
{
"checkFragmentShorthand": true
}
],
"react/self-closing-comp": 2,
"react/prefer-es6-class": 2,
"react/prefer-stateless-function": 1,
"react/require-render-return": 2,
"react/no-danger": 1,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-find-dom-node": 2,
"react/no-is-mounted": 2,
"react/no-string-refs": 2,
"import/extensions": "off",
"react/function-component-definition": "off",
"react/jsx-no-constructed-context-values": "off",
"react/jsx-no-useless-fragment": "off",
"react/no-array-index-key": "off",
"react/no-unstable-nested-components": "off",
"react/no-unused-prop-types": "off",
"react/destructuring-assignment": "off",
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"@typescript-eslint/comma-dangle": "off",
"import/prefer-default-export": "off",
"import/order": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/consistent-type-imports": "off",
"jsx-a11y/label-has-associated-control": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-await-in-loop": "off",
"no-continue": "off",
"no-plusplus": "off",
"no-bitwise": "off",
"no-empty": "off",
"consistent-return": "off",
"no-promise-executor-return": "off",
"class-methods-use-this": "off",
"import/no-cycle": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_|[pP]rops$"
}
],
"@typescript-eslint/return-await": "off",
"guard-for-in": "off",
"no-restricted-syntax": "off",
"@typescript-eslint/no-explicit-any": "off",
"max-classes-per-file": "off",
"no-underscore-dangle": "off",
"@typescript-eslint/naming-convention": "off",
"react/prop-types": "off",
"react/button-has-type": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"no-alert": "off",
"jsx-a11y/control-has-associated-label": "off",
"@typescript-eslint/ban-types": "off"
}
}
]
}