@ethang/eslint-config 17.0.4 → 17.0.5
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/eslint.config.js +24 -9
- package/package.json +1 -1
package/eslint.config.js
CHANGED
|
@@ -400,11 +400,13 @@ export default tseslint.config(
|
|
|
400
400
|
"operator-assignment": "error",
|
|
401
401
|
"padding-line-between-statements": "off",
|
|
402
402
|
"prefer-const": "error",
|
|
403
|
+
"prefer-destructuring": "off", // Handled by tseslint
|
|
403
404
|
"prefer-exponentiation-operator": "error",
|
|
404
405
|
"prefer-named-capture-group": "error",
|
|
405
406
|
"prefer-numeric-literals": "error",
|
|
406
407
|
"prefer-object-has-own": "error",
|
|
407
408
|
"prefer-object-spread": "error",
|
|
409
|
+
"prefer-promise-reject-errors": "off", // Handled by tseslint
|
|
408
410
|
"prefer-reflect": "off",
|
|
409
411
|
"prefer-regex-literals": "error",
|
|
410
412
|
"prefer-rest-params": "error",
|
|
@@ -412,10 +414,12 @@ export default tseslint.config(
|
|
|
412
414
|
"prefer-template": "error",
|
|
413
415
|
radix: "error",
|
|
414
416
|
"require-atomic-updates": "error",
|
|
417
|
+
"require-await": "off", // Handled by tseslint
|
|
415
418
|
"require-unicode-regexp": "error",
|
|
416
419
|
"require-yield": "error",
|
|
417
420
|
"spaced-comment": "off",
|
|
418
421
|
"sort-imports": "off",
|
|
422
|
+
"sort-keys": "off", // Handled by perfectionist
|
|
419
423
|
"sort-vars": "error",
|
|
420
424
|
strict: "error",
|
|
421
425
|
"symbol-description": "error",
|
|
@@ -425,11 +429,6 @@ export default tseslint.config(
|
|
|
425
429
|
"vars-on-top": "error",
|
|
426
430
|
yoda: ["error", "always"],
|
|
427
431
|
|
|
428
|
-
"prefer-destructuring": "off", // Handled by tseslint
|
|
429
|
-
"prefer-promise-reject-errors": "off", // Handled by tseslint
|
|
430
|
-
"require-await": "off", // Handled by tseslint
|
|
431
|
-
"sort-keys": "off", // Handled by perfectionist
|
|
432
|
-
|
|
433
432
|
"n/callback-return": "off",
|
|
434
433
|
"n/exports-style": ["error", "exports"],
|
|
435
434
|
"n/file-extension-in-import": "off", // buggy with .ts
|
|
@@ -779,7 +778,12 @@ export default tseslint.config(
|
|
|
779
778
|
"@tanstack/query/stable-query-client": "error",
|
|
780
779
|
|
|
781
780
|
"perfectionist/sort-array-includes": "error",
|
|
782
|
-
"perfectionist/sort-astro-attributes":
|
|
781
|
+
"perfectionist/sort-astro-attributes": [
|
|
782
|
+
"error",
|
|
783
|
+
{
|
|
784
|
+
groups: ["astro-shorthand", "shorthand", "multiline"],
|
|
785
|
+
},
|
|
786
|
+
],
|
|
783
787
|
"perfectionist/sort-classes": "error",
|
|
784
788
|
"perfectionist/sort-enums": "error",
|
|
785
789
|
"perfectionist/sort-exports": "error",
|
|
@@ -800,16 +804,27 @@ export default tseslint.config(
|
|
|
800
804
|
},
|
|
801
805
|
],
|
|
802
806
|
"perfectionist/sort-interfaces": "error",
|
|
803
|
-
"perfectionist/sort-jsx-props":
|
|
807
|
+
"perfectionist/sort-jsx-props": [
|
|
808
|
+
"error",
|
|
809
|
+
{ groups: ["shorthand", "multiline"] },
|
|
810
|
+
],
|
|
804
811
|
"perfectionist/sort-maps": "error",
|
|
805
812
|
"perfectionist/sort-named-exports": "error",
|
|
806
813
|
"perfectionist/sort-named-imports": "error",
|
|
807
814
|
"perfectionist/sort-object-types": "error",
|
|
808
815
|
"perfectionist/sort-objects": "error",
|
|
809
|
-
"perfectionist/sort-svelte-attributes":
|
|
816
|
+
"perfectionist/sort-svelte-attributes": [
|
|
817
|
+
"error",
|
|
818
|
+
{
|
|
819
|
+
groups: ["svelte-shorthand", "shorthand", "multiline"],
|
|
820
|
+
},
|
|
821
|
+
],
|
|
810
822
|
"perfectionist/sort-intersection-types": "error",
|
|
811
823
|
"perfectionist/sort-union-types": "error",
|
|
812
|
-
"perfectionist/sort-vue-attributes":
|
|
824
|
+
"perfectionist/sort-vue-attributes": [
|
|
825
|
+
"error",
|
|
826
|
+
{ groups: ["shorthand", "multiline"] },
|
|
827
|
+
],
|
|
813
828
|
|
|
814
829
|
"a11y/accessible-emoji": "off",
|
|
815
830
|
"a11y/alt-text": "error",
|