@moso/eslint-config 3.0.2 → 3.0.4

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 CHANGED
@@ -687,7 +687,7 @@ const ignores = async (options) => {
687
687
  var package_default = {
688
688
  name: "@moso/eslint-config",
689
689
  type: "module",
690
- version: "3.0.2",
690
+ version: "3.0.4",
691
691
  description: "@moso's sharable ESLint config",
692
692
  author: {
693
693
  "name": "Morten Sørensen",
@@ -742,11 +742,11 @@ var package_default = {
742
742
  },
743
743
  workspaces: ["src/rules"],
744
744
  peerDependencies: {
745
- "@eslint-react/eslint-plugin": "^5.14.8",
745
+ "@eslint-react/eslint-plugin": "^5.17.1",
746
746
  "@next/eslint-plugin-next": "^16.2.10",
747
747
  "astro-eslint-parser": "^3.0.0",
748
748
  "eslint": "^10.0.0",
749
- "eslint-plugin-astro": "^3.0.0",
749
+ "eslint-plugin-astro": "^3.0.1",
750
750
  "eslint-plugin-erasable-syntax-only": "^0.4.2",
751
751
  "eslint-plugin-jsx-a11y": "^6.10.2",
752
752
  "eslint-plugin-react-hooks": "^7.1.1",
@@ -787,7 +787,7 @@ var package_default = {
787
787
  "eslint-plugin-de-morgan": "^2.1.3",
788
788
  "eslint-plugin-functional": "^10.0.0",
789
789
  "eslint-plugin-import-lite": "^0.6.0",
790
- "eslint-plugin-jsdoc": "^63.0.13",
790
+ "eslint-plugin-jsdoc": "^63.0.14",
791
791
  "eslint-plugin-jsonc": "^3.3.0",
792
792
  "eslint-plugin-n": "^18.2.2",
793
793
  "eslint-plugin-no-only-tests": "^3.4.0",
@@ -795,7 +795,7 @@ var package_default = {
795
795
  "eslint-plugin-promise": "^7.3.0",
796
796
  "eslint-plugin-regexp": "^3.1.1",
797
797
  "eslint-plugin-toml": "^1.4.0",
798
- "eslint-plugin-unicorn": "^71.1.0",
798
+ "eslint-plugin-unicorn": "^72.0.0",
799
799
  "eslint-plugin-unused-imports": "^4.4.1",
800
800
  "eslint-plugin-yml": "^3.6.0",
801
801
  "eslint-processor-vue-blocks": "^2.0.0",
@@ -807,7 +807,7 @@ var package_default = {
807
807
  "yaml-eslint-parser": "^2.1.0"
808
808
  },
809
809
  devDependencies: {
810
- "@eslint-react/eslint-plugin": "^5.14.8",
810
+ "@eslint-react/eslint-plugin": "^5.17.1",
811
811
  "@eslint/compat": "^2.1.0",
812
812
  "@eslint/config-inspector": "^3.1.0",
813
813
  "@moso/eslint-plugin": "workspace:*",
@@ -818,7 +818,7 @@ var package_default = {
818
818
  "astro-eslint-parser": "^3.0.0",
819
819
  "bumpp": "^11.1.0",
820
820
  "eslint": "^10.7.0",
821
- "eslint-plugin-astro": "^3.0.0",
821
+ "eslint-plugin-astro": "^3.0.1",
822
822
  "eslint-plugin-erasable-syntax-only": "^0.4.2",
823
823
  "eslint-plugin-jsx-a11y": "^6.10.2",
824
824
  "eslint-plugin-react-hooks": "^7.1.1",
@@ -831,7 +831,7 @@ var package_default = {
831
831
  "nano-staged": "^1.0.2",
832
832
  "simple-git-hooks": "^2.13.1",
833
833
  "ts-dedent": "^2.3.0",
834
- "tsdown": "^0.22.7",
834
+ "tsdown": "^0.22.9",
835
835
  "tsx": "^4.23.1",
836
836
  "typescript": "^6.0.3",
837
837
  "vitest": "^4.1.10"
@@ -2455,15 +2455,64 @@ const perfectionist = async (options) => {
2455
2455
  ignoreCase: true,
2456
2456
  type: "alphabetical"
2457
2457
  }],
2458
- "perfectionist/sort-jsx-props": ["error", {
2459
- ...commonOptions,
2460
- fallbackSort: {
2461
- order: "asc",
2462
- type: "natural"
2458
+ "perfectionist/sort-jsx-props": [
2459
+ "error",
2460
+ {
2461
+ ...commonOptions,
2462
+ type: "unsorted",
2463
+ useConfigurationIf: { tagMatchesPattern: "^[a-z][^.]*$" }
2463
2464
  },
2464
- ignoreCase: true,
2465
- type: "alphabetical"
2466
- }],
2465
+ {
2466
+ ...commonOptions,
2467
+ customGroups: [
2468
+ {
2469
+ elementNamePattern: ["^role$", "^aria-.+$"],
2470
+ groupName: "a11y"
2471
+ },
2472
+ {
2473
+ elementNamePattern: [
2474
+ "^type$",
2475
+ "^id$",
2476
+ "^className$",
2477
+ "^href$",
2478
+ "^src$",
2479
+ "^srcSet$",
2480
+ "^name$",
2481
+ "^style$"
2482
+ ],
2483
+ groupName: "almost-props"
2484
+ },
2485
+ {
2486
+ elementNamePattern: "^on.+",
2487
+ groupName: "callback"
2488
+ },
2489
+ {
2490
+ elementNamePattern: "^(?:class|client|is|server|set|transition):",
2491
+ groupName: "directive"
2492
+ },
2493
+ {
2494
+ elementNamePattern: ["^ref$", "^key$"],
2495
+ groupName: "reserved"
2496
+ }
2497
+ ],
2498
+ fallbackSort: {
2499
+ order: "asc",
2500
+ type: "natural"
2501
+ },
2502
+ ignoreCase: true,
2503
+ groups: [
2504
+ "reserved",
2505
+ "almost-props",
2506
+ "unknown",
2507
+ "directive",
2508
+ "a11y",
2509
+ "shorthand-prop",
2510
+ "callback",
2511
+ "multiline-prop"
2512
+ ],
2513
+ type: "alphabetical"
2514
+ }
2515
+ ],
2467
2516
  "perfectionist/sort-maps": [
2468
2517
  "error",
2469
2518
  {
@@ -2563,8 +2612,7 @@ const promise = async (options = {}) => {
2563
2612
  "finally"
2564
2613
  ]
2565
2614
  }],
2566
- "promise/no-native": "off",
2567
- "promise/prefer-catch": "error"
2615
+ "promise/no-native": "off"
2568
2616
  },
2569
2617
  ...overrides
2570
2618
  }
@@ -3967,6 +4015,7 @@ const unicorn = async (options) => {
3967
4015
  "unicorn/no-nonstandard-builtin-properties": "off",
3968
4016
  "unicorn/no-null": "off",
3969
4017
  "unicorn/no-process-exit": "off",
4018
+ "unicorn/no-shorthand-property-overrides": "off",
3970
4019
  "unicorn/no-unnecessary-array-flat-map": "off",
3971
4020
  "unicorn/no-unsafe-string-replacement": "off",
3972
4021
  "unicorn/no-useless-boolean-cast": "off",
@@ -4423,7 +4472,7 @@ async function moso(options, ...userConfigs) {
4423
4472
  parserOptions: {
4424
4473
  tsconfigRootDir: projectRootOptions,
4425
4474
  ...parserOptions,
4426
- projectService: parserOptions?.projectService === false || projectRootOptions === void 0 ? false : useDefaultDefaultProject === false ? projectServiceUserConfig : {
4475
+ projectService: projectRootOptions === void 0 || parserOptions?.projectService === false ? false : useDefaultDefaultProject === false ? projectServiceUserConfig : {
4427
4476
  allowDefaultProject: [
4428
4477
  withRoot(GLOB_ROOT_DTS),
4429
4478
  withRoot(GLOB_ROOT_JS),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moso/eslint-config",
3
3
  "type": "module",
4
- "version": "3.0.2",
4
+ "version": "3.0.4",
5
5
  "description": "@moso's sharable ESLint config",
6
6
  "author": {
7
7
  "name": "Morten Sørensen",
@@ -62,11 +62,11 @@
62
62
  "src/rules"
63
63
  ],
64
64
  "peerDependencies": {
65
- "@eslint-react/eslint-plugin": "^5.14.8",
65
+ "@eslint-react/eslint-plugin": "^5.17.1",
66
66
  "@next/eslint-plugin-next": "^16.2.10",
67
67
  "astro-eslint-parser": "^3.0.0",
68
68
  "eslint": "^10.0.0",
69
- "eslint-plugin-astro": "^3.0.0",
69
+ "eslint-plugin-astro": "^3.0.1",
70
70
  "eslint-plugin-erasable-syntax-only": "^0.4.2",
71
71
  "eslint-plugin-jsx-a11y": "^6.10.2",
72
72
  "eslint-plugin-react-hooks": "^7.1.1",
@@ -131,7 +131,7 @@
131
131
  "eslint-plugin-de-morgan": "^2.1.3",
132
132
  "eslint-plugin-functional": "^10.0.0",
133
133
  "eslint-plugin-import-lite": "^0.6.0",
134
- "eslint-plugin-jsdoc": "^63.0.13",
134
+ "eslint-plugin-jsdoc": "^63.0.14",
135
135
  "eslint-plugin-jsonc": "^3.3.0",
136
136
  "eslint-plugin-n": "^18.2.2",
137
137
  "eslint-plugin-no-only-tests": "^3.4.0",
@@ -139,7 +139,7 @@
139
139
  "eslint-plugin-promise": "^7.3.0",
140
140
  "eslint-plugin-regexp": "^3.1.1",
141
141
  "eslint-plugin-toml": "^1.4.0",
142
- "eslint-plugin-unicorn": "^71.1.0",
142
+ "eslint-plugin-unicorn": "^72.0.0",
143
143
  "eslint-plugin-unused-imports": "^4.4.1",
144
144
  "eslint-plugin-yml": "^3.6.0",
145
145
  "eslint-processor-vue-blocks": "^2.0.0",
@@ -151,10 +151,10 @@
151
151
  "yaml-eslint-parser": "^2.1.0"
152
152
  },
153
153
  "devDependencies": {
154
- "@eslint-react/eslint-plugin": "^5.14.8",
154
+ "@eslint-react/eslint-plugin": "^5.17.1",
155
155
  "@eslint/compat": "^2.1.0",
156
156
  "@eslint/config-inspector": "^3.1.0",
157
- "@moso/eslint-plugin": "3.0.1",
157
+ "@moso/eslint-plugin": "3.0.3",
158
158
  "@next/eslint-plugin-next": "^16.2.10",
159
159
  "@types/eslint-plugin-jsx-a11y": "^6.10.1",
160
160
  "@types/node": "^26.1.1",
@@ -162,7 +162,7 @@
162
162
  "astro-eslint-parser": "^3.0.0",
163
163
  "bumpp": "^11.1.0",
164
164
  "eslint": "^10.7.0",
165
- "eslint-plugin-astro": "^3.0.0",
165
+ "eslint-plugin-astro": "^3.0.1",
166
166
  "eslint-plugin-erasable-syntax-only": "^0.4.2",
167
167
  "eslint-plugin-jsx-a11y": "^6.10.2",
168
168
  "eslint-plugin-react-hooks": "^7.1.1",
@@ -175,7 +175,7 @@
175
175
  "nano-staged": "^1.0.2",
176
176
  "simple-git-hooks": "^2.13.1",
177
177
  "ts-dedent": "^2.3.0",
178
- "tsdown": "^0.22.7",
178
+ "tsdown": "^0.22.9",
179
179
  "tsx": "^4.23.1",
180
180
  "typescript": "^6.0.3",
181
181
  "vitest": "^4.1.10"