@ntnyq/eslint-config 7.0.0-beta.5 → 7.0.0-beta.7
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.d.mts +593 -296
- package/dist/index.mjs +16 -1
- package/package.json +15 -15
package/dist/index.mjs
CHANGED
|
@@ -673,7 +673,7 @@ async function ensurePackages(packages) {
|
|
|
673
673
|
if (nonExistingPackages.length === 0) return;
|
|
674
674
|
const { confirm, isCancel } = await import("@clack/prompts");
|
|
675
675
|
const confirmInstall = await confirm({ message: `${nonExistingPackages.length === 1 ? "Package is" : "Packages are"} required for this config: ${nonExistingPackages.join(", ")}. Do you want to install them?` });
|
|
676
|
-
if (isCancel(confirmInstall) || confirmInstall
|
|
676
|
+
if (isCancel(confirmInstall) || !confirmInstall) return;
|
|
677
677
|
try {
|
|
678
678
|
const { installPackage } = await import("@antfu/install-pkg");
|
|
679
679
|
await installPackage(nonExistingPackages, { dev: true });
|
|
@@ -2009,6 +2009,7 @@ const configUnicorn = (options = {}) => {
|
|
|
2009
2009
|
"unicorn/prefer-global-this": "off",
|
|
2010
2010
|
"unicorn/prefer-top-level-await": "off",
|
|
2011
2011
|
"unicorn/consistent-assert": "error",
|
|
2012
|
+
"unicorn/consistent-conditional-object-spread": ["error", "ternary"],
|
|
2012
2013
|
"unicorn/consistent-existence-index-check": "error",
|
|
2013
2014
|
"unicorn/consistent-json-file-read": "error",
|
|
2014
2015
|
"unicorn/error-message": "error",
|
|
@@ -2018,6 +2019,8 @@ const configUnicorn = (options = {}) => {
|
|
|
2018
2019
|
"unicorn/no-blob-to-file": "error",
|
|
2019
2020
|
"unicorn/no-canvas-to-image": "error",
|
|
2020
2021
|
"unicorn/no-console-spaces": "error",
|
|
2022
|
+
"unicorn/no-constant-zero-expression": "error",
|
|
2023
|
+
"unicorn/no-double-comparison": "error",
|
|
2021
2024
|
"unicorn/no-for-loop": "error",
|
|
2022
2025
|
"unicorn/no-hex-escape": "error",
|
|
2023
2026
|
"unicorn/no-immediate-mutation": "error",
|
|
@@ -2030,11 +2033,14 @@ const configUnicorn = (options = {}) => {
|
|
|
2030
2033
|
"unicorn/no-this-outside-of-class": "error",
|
|
2031
2034
|
"unicorn/no-typeof-undefined": "error",
|
|
2032
2035
|
"unicorn/no-unnecessary-await": "error",
|
|
2036
|
+
"unicorn/no-unnecessary-boolean-comparison": "error",
|
|
2033
2037
|
"unicorn/no-unnecessary-global-this": "error",
|
|
2034
2038
|
"unicorn/no-unnecessary-nested-ternary": "error",
|
|
2035
2039
|
"unicorn/no-unsafe-property-key": "error",
|
|
2036
2040
|
"unicorn/no-useless-boolean-cast": "error",
|
|
2041
|
+
"unicorn/no-useless-coercion": "error",
|
|
2037
2042
|
"unicorn/no-useless-collection-argument": "error",
|
|
2043
|
+
"unicorn/no-useless-continue": "error",
|
|
2038
2044
|
"unicorn/no-useless-else": "error",
|
|
2039
2045
|
"unicorn/no-useless-iterator-to-array": "error",
|
|
2040
2046
|
"unicorn/prefer-class-fields": "error",
|
|
@@ -2148,6 +2154,15 @@ const configUnicorn = (options = {}) => {
|
|
|
2148
2154
|
"unicorn/prefer-set-has": "error",
|
|
2149
2155
|
"unicorn/prefer-set-size": "error",
|
|
2150
2156
|
/**
|
|
2157
|
+
* @pg Map
|
|
2158
|
+
*/
|
|
2159
|
+
"unicorn/prefer-has-check": "error",
|
|
2160
|
+
"unicorn/prefer-object-from-entries": "error",
|
|
2161
|
+
/**
|
|
2162
|
+
* @pg Class
|
|
2163
|
+
*/
|
|
2164
|
+
"unicorn/no-useless-override": "error",
|
|
2165
|
+
/**
|
|
2151
2166
|
* @pg Module
|
|
2152
2167
|
*/
|
|
2153
2168
|
"unicorn/no-exports-in-scripts": "error",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-beta.
|
|
4
|
+
"version": "7.0.0-beta.7",
|
|
5
5
|
"description": "An opinionated ESLint config preset of ntnyq",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"homepage": "https://eslint-config.ntnyq.com",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
|
-
"url": "ntnyq/eslint-config"
|
|
20
|
+
"url": "git+https://github.com/ntnyq/eslint-config.git"
|
|
21
21
|
},
|
|
22
22
|
"bugs": {
|
|
23
23
|
"url": "https://github.com/ntnyq/eslint-config/issues"
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"@html-eslint/parser": "^0.61.0",
|
|
44
44
|
"astro-eslint-parser": "^1.4.0",
|
|
45
45
|
"eslint": "^10.4.0",
|
|
46
|
-
"eslint-plugin-astro": "^1.
|
|
47
|
-
"eslint-plugin-eslint-plugin": "^7.
|
|
48
|
-
"eslint-plugin-pnpm": "^1.6.
|
|
49
|
-
"eslint-plugin-svelte": "^3.
|
|
46
|
+
"eslint-plugin-astro": "^1.7.0",
|
|
47
|
+
"eslint-plugin-eslint-plugin": "^7.4.0",
|
|
48
|
+
"eslint-plugin-pnpm": "^1.6.1",
|
|
49
|
+
"eslint-plugin-svelte": "^3.19.0",
|
|
50
50
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
51
|
-
"svelte": "^5.
|
|
52
|
-
"svelte-eslint-parser": "^1.
|
|
51
|
+
"svelte": "^5.56.3",
|
|
52
|
+
"svelte-eslint-parser": "^1.8.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@html-eslint/eslint-plugin": {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"@antfu/install-pkg": "^1.1.0",
|
|
88
|
-
"@clack/prompts": "^1.
|
|
88
|
+
"@clack/prompts": "^1.6.0",
|
|
89
89
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
|
|
90
90
|
"@eslint/js": "^10.0.1",
|
|
91
91
|
"@eslint/markdown": "^8.0.2",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@unocss/eslint-plugin": "^66.7.2",
|
|
94
94
|
"@vitest/eslint-plugin": "^1.6.20",
|
|
95
95
|
"eslint-config-flat-gitignore": "^2.3.0",
|
|
96
|
-
"eslint-flat-config-utils": "3.2.0",
|
|
96
|
+
"eslint-flat-config-utils": "^3.2.0",
|
|
97
97
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
98
98
|
"eslint-merge-processors": "^2.0.0",
|
|
99
99
|
"eslint-parser-plain": "^0.1.1",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"eslint-plugin-depend": "^1.5.0",
|
|
104
104
|
"eslint-plugin-github-action": "^0.3.0",
|
|
105
105
|
"eslint-plugin-import-x": "^4.16.2",
|
|
106
|
-
"eslint-plugin-jsdoc": "^63.0.
|
|
106
|
+
"eslint-plugin-jsdoc": "^63.0.7",
|
|
107
107
|
"eslint-plugin-jsonc": "^3.2.0",
|
|
108
108
|
"eslint-plugin-n": "^18.1.0",
|
|
109
109
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"eslint-plugin-regexp": "^3.1.0",
|
|
116
116
|
"eslint-plugin-svgo": "^0.12.0",
|
|
117
117
|
"eslint-plugin-toml": "^1.4.0",
|
|
118
|
-
"eslint-plugin-unicorn": "^
|
|
118
|
+
"eslint-plugin-unicorn": "^68.0.0",
|
|
119
119
|
"eslint-plugin-vue": "^10.9.2",
|
|
120
120
|
"eslint-plugin-yml": "^3.4.0",
|
|
121
121
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
@@ -128,10 +128,10 @@
|
|
|
128
128
|
"yaml-eslint-parser": "^2.0.0"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
|
-
"@types/node": "^
|
|
131
|
+
"@types/node": "^26.0.0",
|
|
132
132
|
"@typescript-eslint/types": "^8.61.1",
|
|
133
133
|
"@typescript-eslint/utils": "^8.61.1",
|
|
134
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
134
|
+
"@typescript/native-preview": "^7.0.0-dev.20260621.1",
|
|
135
135
|
"bumpp": "^11.1.0",
|
|
136
136
|
"consola": "^3.4.2",
|
|
137
137
|
"eslint": "^10.5.0",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"oxfmt": "^0.55.0",
|
|
144
144
|
"prettier": "^3.8.4",
|
|
145
145
|
"tinyglobby": "^0.2.17",
|
|
146
|
-
"tsdown": "^0.22.
|
|
146
|
+
"tsdown": "^0.22.3",
|
|
147
147
|
"tsx": "^4.22.4",
|
|
148
148
|
"typescript": "^6.0.3",
|
|
149
149
|
"uncase": "^0.2.0",
|