@lincy/eslint-config 6.3.0 → 6.4.0

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
@@ -964,28 +964,27 @@ async function perfectionist(options = {}) {
964
964
  }],
965
965
  "perfectionist/sort-imports": ["error", {
966
966
  groups: [
967
- "type",
968
- "builtin-type",
967
+ "type-import",
969
968
  [
970
- "index-type",
971
- "parent-type",
972
- "sibling-type",
973
- "internal-type"
969
+ "type-parent",
970
+ "type-sibling",
971
+ "type-index",
972
+ "type-internal"
974
973
  ],
975
- "builtin",
976
- "external",
977
- "internal",
974
+ "value-builtin",
975
+ "value-external",
976
+ "value-internal",
978
977
  [
979
- "index",
980
- "parent",
981
- "sibling"
978
+ "value-parent",
979
+ "value-sibling",
980
+ "value-index"
982
981
  ],
983
982
  "side-effect",
984
- "object",
983
+ "ts-equals-import",
985
984
  "unknown"
986
985
  ],
987
- internalPattern: ["^~/.*", "^@/.*"],
988
986
  newlinesBetween: "ignore",
987
+ newlinesInside: "ignore",
989
988
  order: "asc",
990
989
  type: "natural"
991
990
  }],
@@ -1234,6 +1233,7 @@ async function react(options = {}) {
1234
1233
  "react/no-unsafe-component-will-update": "warn",
1235
1234
  "react/no-use-context": "warn",
1236
1235
  "react/no-useless-forward-ref": "warn",
1236
+ "react/prefer-namespace-import": "error",
1237
1237
  "react/prefer-use-state-lazy-initialization": "warn",
1238
1238
  ...reactCompiler ? {
1239
1239
  "react-hooks/component-hook-factories": "error",
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@lincy/eslint-config",
3
3
  "type": "module",
4
- "version": "6.3.0",
5
- "packageManager": "pnpm@10.26.1",
4
+ "version": "6.4.0",
6
5
  "description": "LinCenYing's ESLint config",
7
6
  "author": "LinCenYing <lincenying@gmail.com> (https://github.com/lincenying/)",
8
7
  "license": "MIT",
@@ -23,20 +22,6 @@
23
22
  "files": [
24
23
  "dist"
25
24
  ],
26
- "scripts": {
27
- "build": "nr typegen && tsdown --format esm,cjs --clean --dts",
28
- "stub": "tsdown src/index.ts --format esm",
29
- "watch": "tsdown --format esm,cjs --watch",
30
- "postpublish": "simple-open-url https://npmmirror.com/package/@lincy/eslint-config",
31
- "prepublishOnly": "nr build",
32
- "release": "bumpp && pnpm publish -r --access public",
33
- "test": "vitest",
34
- "typegen": "tsx scripts/typegen.ts",
35
- "lint": "pnpm run stub && eslint .",
36
- "lint:fix": "eslint . --fix",
37
- "lint:ts": "tsc --noEmit",
38
- "prepare[-del]": "npx simple-git-hooks"
39
- },
40
25
  "peerDependencies": {
41
26
  "@eslint-react/eslint-plugin": "^2.3.5",
42
27
  "@next/eslint-plugin-next": ">=15.0.0",
@@ -71,70 +56,70 @@
71
56
  }
72
57
  },
73
58
  "dependencies": {
74
- "@antfu/install-pkg": "catalog:prod",
75
- "@clack/prompts": "catalog:prod",
76
- "@eslint-community/eslint-plugin-eslint-comments": "catalog:prod",
77
- "@eslint/markdown": "catalog:prod",
78
- "@stylistic/eslint-plugin": "catalog:prod",
79
- "@typescript-eslint/eslint-plugin": "catalog:prod",
80
- "@typescript-eslint/parser": "catalog:prod",
81
- "@vitest/eslint-plugin": "catalog:prod",
82
- "eslint-config-flat-gitignore": "catalog:prod",
83
- "eslint-flat-config-utils": "catalog:prod",
84
- "eslint-merge-processors": "catalog:prod",
85
- "eslint-parser-plain": "catalog:prod",
86
- "eslint-plugin-antfu": "catalog:prod",
87
- "eslint-plugin-erasable-syntax-only": "catalog:prod",
88
- "eslint-plugin-import-lite": "catalog:prod",
89
- "eslint-plugin-jsdoc": "catalog:prod",
90
- "eslint-plugin-jsonc": "catalog:prod",
91
- "eslint-plugin-n": "catalog:prod",
92
- "eslint-plugin-no-only-tests": "catalog:prod",
93
- "eslint-plugin-perfectionist": "catalog:prod",
94
- "eslint-plugin-pnpm": "catalog:prod",
95
- "eslint-plugin-regexp": "catalog:prod",
96
- "eslint-plugin-toml": "catalog:prod",
97
- "eslint-plugin-unicorn": "catalog:prod",
98
- "eslint-plugin-unused-imports": "catalog:prod",
99
- "eslint-plugin-vue": "catalog:prod",
100
- "eslint-plugin-yml": "catalog:prod",
101
- "eslint-processor-vue-blocks": "catalog:prod",
102
- "globals": "catalog:prod",
103
- "jsonc-eslint-parser": "catalog:prod",
104
- "local-pkg": "catalog:prod",
105
- "toml-eslint-parser": "catalog:prod",
106
- "vue-eslint-parser": "catalog:prod",
107
- "yaml-eslint-parser": "catalog:prod"
59
+ "@antfu/install-pkg": "^1.1.0",
60
+ "@clack/prompts": "^0.11.0",
61
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
62
+ "@eslint/markdown": "^7.5.1",
63
+ "@stylistic/eslint-plugin": "^5.7.0",
64
+ "@typescript-eslint/eslint-plugin": "^8.53.0",
65
+ "@typescript-eslint/parser": "^8.53.0",
66
+ "@vitest/eslint-plugin": "^1.6.6",
67
+ "eslint-config-flat-gitignore": "^2.1.0",
68
+ "eslint-flat-config-utils": "^2.1.4",
69
+ "eslint-merge-processors": "^2.0.0",
70
+ "eslint-parser-plain": "^0.1.1",
71
+ "eslint-plugin-antfu": "^3.1.3",
72
+ "eslint-plugin-erasable-syntax-only": "^0.4.0",
73
+ "eslint-plugin-import-lite": "^0.5.0",
74
+ "eslint-plugin-jsdoc": "^61.7.1",
75
+ "eslint-plugin-jsonc": "^2.21.0",
76
+ "eslint-plugin-n": "^17.23.2",
77
+ "eslint-plugin-no-only-tests": "^3.3.0",
78
+ "eslint-plugin-perfectionist": "^5.3.1",
79
+ "eslint-plugin-pnpm": "^1.4.3",
80
+ "eslint-plugin-regexp": "^2.10.0",
81
+ "eslint-plugin-toml": "^1.0.0",
82
+ "eslint-plugin-unicorn": "^62.0.0",
83
+ "eslint-plugin-unused-imports": "^4.3.0",
84
+ "eslint-plugin-vue": "^10.6.2",
85
+ "eslint-plugin-yml": "^1.19.1",
86
+ "eslint-processor-vue-blocks": "^2.0.0",
87
+ "globals": "^17.0.0",
88
+ "jsonc-eslint-parser": "^2.4.2",
89
+ "local-pkg": "^1.1.2",
90
+ "toml-eslint-parser": "^1.0.1",
91
+ "vue-eslint-parser": "^10.2.0",
92
+ "yaml-eslint-parser": "^1.3.2"
108
93
  },
109
94
  "devDependencies": {
110
- "@antfu/ni": "catalog:dev",
111
- "@eslint-react/eslint-plugin": "catalog:peer",
112
- "@eslint/config-inspector": "catalog:dev",
113
- "@lincy/eslint-config": "workspace:*",
114
- "@next/eslint-plugin-next": "catalog:peer",
115
- "@prettier/plugin-xml": "catalog:peer",
116
- "@stylistic/eslint-plugin-migrate": "catalog:dev",
117
- "@types/node": "catalog:dev",
118
- "@types/react": "catalog:dev",
119
- "@unocss/eslint-plugin": "catalog:peer",
120
- "bumpp": "catalog:dev",
121
- "eslint": "catalog:peer",
122
- "eslint-plugin-format": "catalog:peer",
123
- "eslint-plugin-react-hooks": "catalog:peer",
124
- "eslint-plugin-react-refresh": "catalog:peer",
125
- "eslint-typegen": "catalog:dev",
126
- "esno": "catalog:dev",
127
- "execa": "catalog:test",
128
- "find-up-simple": "catalog:inline",
129
- "lint-staged": "catalog:dev",
130
- "prettier": "catalog:dev",
131
- "react": "catalog:dev",
132
- "simple-open-url": "catalog:dev",
133
- "tinyglobby": "catalog:test",
134
- "tsdown": "catalog:dev",
135
- "typescript": "catalog:dev",
136
- "vitest": "catalog:test",
137
- "vue": "catalog:peer"
95
+ "@antfu/ni": "^28.2.0",
96
+ "@eslint-react/eslint-plugin": "^2.6.0",
97
+ "@eslint/config-inspector": "^1.4.2",
98
+ "@next/eslint-plugin-next": "^16.1.1",
99
+ "@prettier/plugin-xml": "^3.4.2",
100
+ "@stylistic/eslint-plugin-migrate": "^4.4.1",
101
+ "@types/node": "^24.10.8",
102
+ "@types/react": "^19.2.8",
103
+ "@unocss/eslint-plugin": "^66.5.12",
104
+ "bumpp": "^10.4.0",
105
+ "eslint": "^9.39.2",
106
+ "eslint-plugin-format": "^1.3.1",
107
+ "eslint-plugin-react-hooks": "^7.0.1",
108
+ "eslint-plugin-react-refresh": "^0.4.26",
109
+ "eslint-typegen": "^2.3.0",
110
+ "esno": "^4.8.0",
111
+ "execa": "^9.6.1",
112
+ "find-up-simple": "^1.0.1",
113
+ "lint-staged": "^16.2.7",
114
+ "prettier": "^3.7.4",
115
+ "react": "^19.2.3",
116
+ "simple-open-url": "^3.0.1",
117
+ "tinyglobby": "^0.2.15",
118
+ "tsdown": "^0.17.4",
119
+ "typescript": "^5.9.3",
120
+ "vitest": "^4.0.17",
121
+ "vue": "^3.5.26",
122
+ "@lincy/eslint-config": "6.4.0"
138
123
  },
139
124
  "resolutions": {
140
125
  "@eslint-community/eslint-utils": "catalog:peer",
@@ -150,5 +135,17 @@
150
135
  },
151
136
  "publishConfig": {
152
137
  "registry": "https://registry.npmjs.org/"
138
+ },
139
+ "scripts": {
140
+ "build": "nr typegen && tsdown --format esm,cjs --clean --dts",
141
+ "stub": "tsdown src/index.ts --format esm",
142
+ "watch": "tsdown --format esm,cjs --watch",
143
+ "release": "bumpp && pnpm publish -r --access public",
144
+ "test": "vitest",
145
+ "typegen": "tsx scripts/typegen.ts",
146
+ "lint": "pnpm run stub && eslint .",
147
+ "lint:fix": "eslint . --fix",
148
+ "lint:ts": "tsc --noEmit",
149
+ "prepare[-del]": "npx simple-git-hooks"
153
150
  }
154
- }
151
+ }