@wongxy/eslint-config 3.0.0 → 3.0.1

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.cjs CHANGED
@@ -88,7 +88,18 @@ function wongxy(options = {}, ...userConfigs) {
88
88
  ],
89
89
  "perfectionist/sort-jsx-props": ["warn", {
90
90
  order: "asc",
91
- type: "natural"
91
+ type: "natural",
92
+ groups: [
93
+ "reserved-first",
94
+ "reserved-second",
95
+ "unknown",
96
+ "reserved-last"
97
+ ],
98
+ customGroups: {
99
+ "reserved-first": ["key", "ref"],
100
+ "reserved-second": ["id", "name"],
101
+ "reserved-last": ["asChild"]
102
+ }
92
103
  }]
93
104
  })
94
105
  });
package/dist/index.d.cts CHANGED
@@ -71,7 +71,6 @@ interface RuleOptions {
71
71
  */
72
72
  'tw/sort-classes'?: Linter.RuleEntry<TwSortClasses>;
73
73
  }
74
-
75
74
  /* ======= Declarations ======= */
76
75
  // ----- tw/enforce-consistent-class-order -----
77
76
  type TwEnforceConsistentClassOrder = [] | [{
package/dist/index.d.ts CHANGED
@@ -71,7 +71,6 @@ interface RuleOptions {
71
71
  */
72
72
  'tw/sort-classes'?: Linter.RuleEntry<TwSortClasses>;
73
73
  }
74
-
75
74
  /* ======= Declarations ======= */
76
75
  // ----- tw/enforce-consistent-class-order -----
77
76
  type TwEnforceConsistentClassOrder = [] | [{
package/dist/index.js CHANGED
@@ -62,7 +62,18 @@ function wongxy(options = {}, ...userConfigs) {
62
62
  ],
63
63
  "perfectionist/sort-jsx-props": ["warn", {
64
64
  order: "asc",
65
- type: "natural"
65
+ type: "natural",
66
+ groups: [
67
+ "reserved-first",
68
+ "reserved-second",
69
+ "unknown",
70
+ "reserved-last"
71
+ ],
72
+ customGroups: {
73
+ "reserved-first": ["key", "ref"],
74
+ "reserved-second": ["id", "name"],
75
+ "reserved-last": ["asChild"]
76
+ }
66
77
  }]
67
78
  })
68
79
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wongxy/eslint-config",
3
3
  "type": "module",
4
- "version": "3.0.0",
4
+ "version": "3.0.1",
5
5
  "description": "xiyaowong's eslint config",
6
6
  "author": "xiyaowong (https://github.com/xiyaowong)",
7
7
  "license": "MIT",
@@ -14,29 +14,29 @@
14
14
  "dist"
15
15
  ],
16
16
  "peerDependencies": {
17
- "@eslint-react/eslint-plugin": "^1.49.0",
18
- "@next/eslint-plugin-next": "^15.5.2",
19
- "@unocss/eslint-plugin": "^66.1.2",
20
- "eslint": "^9.27.0",
21
- "eslint-plugin-better-tailwindcss": "^3.7.9",
22
- "eslint-plugin-react-hooks": "^5.2.0",
23
- "eslint-plugin-react-refresh": "^0.4.20"
17
+ "@eslint-react/eslint-plugin": "^2.3.1",
18
+ "@next/eslint-plugin-next": "^16.0.1",
19
+ "@unocss/eslint-plugin": "^66.5.4",
20
+ "eslint": "^9.39.1",
21
+ "eslint-plugin-better-tailwindcss": "^3.7.10",
22
+ "eslint-plugin-react-hooks": "^7.0.1",
23
+ "eslint-plugin-react-refresh": "^0.4.24"
24
24
  },
25
25
  "dependencies": {
26
- "@antfu/eslint-config": "^5.2.1",
27
- "eslint-flat-config-utils": "^2.1.1",
26
+ "@antfu/eslint-config": "^6.2.0",
27
+ "eslint-flat-config-utils": "^2.1.4",
28
28
  "local-pkg": "^1.1.2"
29
29
  },
30
30
  "devDependencies": {
31
- "@antfu/ni": "^26.0.1",
31
+ "@antfu/ni": "^27.0.1",
32
32
  "@types/eslint": "^9.6.1",
33
- "@types/node": "^24.3.0",
34
- "bumpp": "^10.2.3",
35
- "eslint": "^9.34.0",
33
+ "@types/node": "^24.10.0",
34
+ "bumpp": "^10.3.1",
35
+ "eslint": "^9.39.1",
36
36
  "eslint-typegen": "^2.3.0",
37
37
  "esno": "^4.8.0",
38
- "tsdown": "^0.14.2",
39
- "typescript": "5.9.2"
38
+ "tsdown": "^0.15.12",
39
+ "typescript": "^5.9.3"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "nr typegen && tsdown --clean --dts",