@jpp-toolkit/eslint-config 0.0.41 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +24 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/configs/perfectionist-config.ts +14 -10
- package/src/configs/react-config.ts +2 -2
- package/src/index.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -203,24 +203,38 @@ const perfectionistConfig = defineConfig({
|
|
|
203
203
|
"perfectionist/sort-exports": ["error", {
|
|
204
204
|
type: "natural",
|
|
205
205
|
order: "asc",
|
|
206
|
-
|
|
206
|
+
fallbackSort: {
|
|
207
|
+
type: "subgroup-order",
|
|
208
|
+
order: "asc"
|
|
209
|
+
},
|
|
210
|
+
newlinesBetween: 1,
|
|
211
|
+
groups: [["type-export", "export"]]
|
|
207
212
|
}],
|
|
208
213
|
"perfectionist/sort-heritage-clauses": "error",
|
|
209
214
|
"sort-imports": "off",
|
|
210
215
|
"perfectionist/sort-imports": ["error", {
|
|
211
216
|
type: "natural",
|
|
212
217
|
order: "asc",
|
|
213
|
-
|
|
214
|
-
|
|
218
|
+
fallbackSort: {
|
|
219
|
+
type: "subgroup-order",
|
|
220
|
+
order: "asc"
|
|
221
|
+
},
|
|
222
|
+
internalPattern: [
|
|
223
|
+
"^~.+",
|
|
224
|
+
"^~/.+",
|
|
225
|
+
"^@/.+"
|
|
226
|
+
],
|
|
227
|
+
newlinesBetween: 1,
|
|
215
228
|
groups: [
|
|
216
229
|
["side-effect", "side-effect-style"],
|
|
217
|
-
["builtin
|
|
218
|
-
["external
|
|
219
|
-
["
|
|
220
|
-
["
|
|
221
|
-
["
|
|
222
|
-
["
|
|
223
|
-
["
|
|
230
|
+
["type-builtin", "builtin"],
|
|
231
|
+
["type-external", "external"],
|
|
232
|
+
["type-subpath", "subpath"],
|
|
233
|
+
["type-internal", "internal"],
|
|
234
|
+
["type-parent", "parent"],
|
|
235
|
+
["type-sibling", "sibling"],
|
|
236
|
+
["type-index", "index"],
|
|
237
|
+
["ts-equals-import"],
|
|
224
238
|
["style"],
|
|
225
239
|
["unknown"]
|
|
226
240
|
]
|
|
@@ -256,7 +270,6 @@ const reactConfig = defineConfig({
|
|
|
256
270
|
}],
|
|
257
271
|
"react/button-has-type": "error",
|
|
258
272
|
"react/checked-requires-onchange-or-readonly": "error",
|
|
259
|
-
"react/default-props-match-prop-types": "error",
|
|
260
273
|
"react/destructuring-assignment": "error",
|
|
261
274
|
"react/forward-ref-uses-ref": "error",
|
|
262
275
|
"react/function-component-definition": ["error", {
|
|
@@ -320,7 +333,6 @@ const reactConfig = defineConfig({
|
|
|
320
333
|
"react/prefer-exact-props": "error",
|
|
321
334
|
"react/prefer-read-only-props": "error",
|
|
322
335
|
"react/prefer-stateless-function": "error",
|
|
323
|
-
"react/require-default-props": "error",
|
|
324
336
|
"react/require-optimization": "error",
|
|
325
337
|
"react/self-closing-comp": "error",
|
|
326
338
|
"react/sort-comp": "error",
|