@lincy/eslint-config 6.3.3 → 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.cjs +14 -14
- package/dist/index.d.cts +1292 -533
- package/dist/index.d.mts +1292 -533
- package/dist/index.mjs +14 -14
- package/package.json +24 -24
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
|
-
"
|
|
971
|
-
"
|
|
972
|
-
"
|
|
973
|
-
"internal
|
|
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
|
-
"
|
|
980
|
-
"
|
|
981
|
-
"
|
|
978
|
+
"value-parent",
|
|
979
|
+
"value-sibling",
|
|
980
|
+
"value-index"
|
|
982
981
|
],
|
|
983
982
|
"side-effect",
|
|
984
|
-
"
|
|
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lincy/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.4.0",
|
|
5
5
|
"description": "LinCenYing's ESLint config",
|
|
6
6
|
"author": "LinCenYing <lincenying@gmail.com> (https://github.com/lincenying/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -58,52 +58,52 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@antfu/install-pkg": "^1.1.0",
|
|
60
60
|
"@clack/prompts": "^0.11.0",
|
|
61
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.
|
|
61
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.6.0",
|
|
62
62
|
"@eslint/markdown": "^7.5.1",
|
|
63
|
-
"@stylistic/eslint-plugin": "^5.
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
65
|
-
"@typescript-eslint/parser": "^8.
|
|
66
|
-
"@vitest/eslint-plugin": "^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
67
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
68
68
|
"eslint-flat-config-utils": "^2.1.4",
|
|
69
69
|
"eslint-merge-processors": "^2.0.0",
|
|
70
70
|
"eslint-parser-plain": "^0.1.1",
|
|
71
|
-
"eslint-plugin-antfu": "^3.1.
|
|
71
|
+
"eslint-plugin-antfu": "^3.1.3",
|
|
72
72
|
"eslint-plugin-erasable-syntax-only": "^0.4.0",
|
|
73
|
-
"eslint-plugin-import-lite": "^0.
|
|
74
|
-
"eslint-plugin-jsdoc": "^61.
|
|
73
|
+
"eslint-plugin-import-lite": "^0.5.0",
|
|
74
|
+
"eslint-plugin-jsdoc": "^61.7.1",
|
|
75
75
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
76
|
-
"eslint-plugin-n": "^17.23.
|
|
76
|
+
"eslint-plugin-n": "^17.23.2",
|
|
77
77
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
78
|
-
"eslint-plugin-perfectionist": "^
|
|
78
|
+
"eslint-plugin-perfectionist": "^5.3.1",
|
|
79
79
|
"eslint-plugin-pnpm": "^1.4.3",
|
|
80
80
|
"eslint-plugin-regexp": "^2.10.0",
|
|
81
|
-
"eslint-plugin-toml": "^0.
|
|
81
|
+
"eslint-plugin-toml": "^1.0.0",
|
|
82
82
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
83
83
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
84
84
|
"eslint-plugin-vue": "^10.6.2",
|
|
85
85
|
"eslint-plugin-yml": "^1.19.1",
|
|
86
86
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
87
|
-
"globals": "^
|
|
87
|
+
"globals": "^17.0.0",
|
|
88
88
|
"jsonc-eslint-parser": "^2.4.2",
|
|
89
89
|
"local-pkg": "^1.1.2",
|
|
90
|
-
"toml-eslint-parser": "^0.
|
|
90
|
+
"toml-eslint-parser": "^1.0.1",
|
|
91
91
|
"vue-eslint-parser": "^10.2.0",
|
|
92
92
|
"yaml-eslint-parser": "^1.3.2"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@antfu/ni": "^28.
|
|
96
|
-
"@eslint-react/eslint-plugin": "^2.
|
|
95
|
+
"@antfu/ni": "^28.2.0",
|
|
96
|
+
"@eslint-react/eslint-plugin": "^2.6.0",
|
|
97
97
|
"@eslint/config-inspector": "^1.4.2",
|
|
98
|
-
"@next/eslint-plugin-next": "^16.1.
|
|
98
|
+
"@next/eslint-plugin-next": "^16.1.1",
|
|
99
99
|
"@prettier/plugin-xml": "^3.4.2",
|
|
100
100
|
"@stylistic/eslint-plugin-migrate": "^4.4.1",
|
|
101
|
-
"@types/node": "^24.10.
|
|
102
|
-
"@types/react": "^19.2.
|
|
103
|
-
"@unocss/eslint-plugin": "^66.5.
|
|
104
|
-
"bumpp": "^10.
|
|
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
105
|
"eslint": "^9.39.2",
|
|
106
|
-
"eslint-plugin-format": "^1.1
|
|
106
|
+
"eslint-plugin-format": "^1.3.1",
|
|
107
107
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
108
108
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
109
109
|
"eslint-typegen": "^2.3.0",
|
|
@@ -117,9 +117,9 @@
|
|
|
117
117
|
"tinyglobby": "^0.2.15",
|
|
118
118
|
"tsdown": "^0.17.4",
|
|
119
119
|
"typescript": "^5.9.3",
|
|
120
|
-
"vitest": "^4.0.
|
|
120
|
+
"vitest": "^4.0.17",
|
|
121
121
|
"vue": "^3.5.26",
|
|
122
|
-
"@lincy/eslint-config": "6.
|
|
122
|
+
"@lincy/eslint-config": "6.4.0"
|
|
123
123
|
},
|
|
124
124
|
"resolutions": {
|
|
125
125
|
"@eslint-community/eslint-utils": "catalog:peer",
|