@ntnyq/eslint-config 3.0.0-beta.11 → 3.0.0-beta.13
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/README.md +5 -1
- package/dist/index.cjs +38 -13
- package/dist/index.d.cts +6155 -2982
- package/dist/index.d.ts +6155 -2982
- package/dist/index.js +37 -13
- package/package.json +16 -15
package/dist/index.js
CHANGED
|
@@ -147,7 +147,20 @@ var typescriptCore = (options = {}) => {
|
|
|
147
147
|
ignoreRestSiblings: true
|
|
148
148
|
}
|
|
149
149
|
],
|
|
150
|
-
"@typescript-eslint/no-redeclare":
|
|
150
|
+
"@typescript-eslint/no-redeclare": [
|
|
151
|
+
"error",
|
|
152
|
+
{
|
|
153
|
+
builtinGlobals: false
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"@typescript-eslint/no-unused-expressions": [
|
|
157
|
+
"error",
|
|
158
|
+
{
|
|
159
|
+
allowShortCircuit: true,
|
|
160
|
+
allowTernary: true,
|
|
161
|
+
allowTaggedTemplates: true
|
|
162
|
+
}
|
|
163
|
+
],
|
|
151
164
|
"@typescript-eslint/consistent-type-imports": [
|
|
152
165
|
"error",
|
|
153
166
|
{
|
|
@@ -211,11 +224,6 @@ var typescript = (options = {}) => [
|
|
|
211
224
|
"no-unused-expressions": "off",
|
|
212
225
|
"max-lines-per-function": "off"
|
|
213
226
|
}
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
name: "ntnyq/ts/cjs",
|
|
217
|
-
files: [GLOB_JS],
|
|
218
|
-
rules: {}
|
|
219
227
|
}
|
|
220
228
|
];
|
|
221
229
|
|
|
@@ -1077,6 +1085,26 @@ var unicorn = (options = {}) => [
|
|
|
1077
1085
|
}
|
|
1078
1086
|
];
|
|
1079
1087
|
|
|
1088
|
+
// src/configs/disables.ts
|
|
1089
|
+
var disables = () => [
|
|
1090
|
+
{
|
|
1091
|
+
name: "ntnyq/disables/scripts",
|
|
1092
|
+
files: [`**/scripts/${GLOB_SRC}`],
|
|
1093
|
+
rules: {
|
|
1094
|
+
"no-console": "off",
|
|
1095
|
+
"@typescript-eslint/explicit-function-return-type": "off"
|
|
1096
|
+
}
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
name: "ntnyq/disables/cli",
|
|
1100
|
+
files: [`**/cli/${GLOB_SRC}`, `**/cli.${GLOB_SRC_EXT}`],
|
|
1101
|
+
rules: {
|
|
1102
|
+
"no-console": "off",
|
|
1103
|
+
"@typescript-eslint/explicit-function-return-type": "off"
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
];
|
|
1107
|
+
|
|
1080
1108
|
// src/configs/comments.ts
|
|
1081
1109
|
var comments = (options = {}) => [
|
|
1082
1110
|
{
|
|
@@ -1423,13 +1451,6 @@ var javascript = (options = {}) => {
|
|
|
1423
1451
|
...options.overrides
|
|
1424
1452
|
}
|
|
1425
1453
|
},
|
|
1426
|
-
{
|
|
1427
|
-
name: "ntnyq/js/scripts",
|
|
1428
|
-
files: ["**/scripts/*", "**/cli.*"],
|
|
1429
|
-
rules: {
|
|
1430
|
-
"no-console": "off"
|
|
1431
|
-
}
|
|
1432
|
-
},
|
|
1433
1454
|
{
|
|
1434
1455
|
name: "ntnyq/js/test",
|
|
1435
1456
|
files: ["**/*.{test,spec}.js?(x)"],
|
|
@@ -1746,6 +1767,7 @@ function ntnyq(options = {}, userConfigs = []) {
|
|
|
1746
1767
|
})
|
|
1747
1768
|
);
|
|
1748
1769
|
}
|
|
1770
|
+
const configDisables = disables();
|
|
1749
1771
|
const configPrettier = options.prettier ?? true ? prettier({
|
|
1750
1772
|
...resolveSubOptions(options, "prettier"),
|
|
1751
1773
|
overrides: getOverrides(options, "prettier")
|
|
@@ -1754,6 +1776,7 @@ function ntnyq(options = {}, userConfigs = []) {
|
|
|
1754
1776
|
composer.append(
|
|
1755
1777
|
...configs,
|
|
1756
1778
|
...toArray(userConfigs),
|
|
1779
|
+
...configDisables,
|
|
1757
1780
|
...configPrettier
|
|
1758
1781
|
);
|
|
1759
1782
|
return composer;
|
|
@@ -1789,6 +1812,7 @@ export {
|
|
|
1789
1812
|
antfu,
|
|
1790
1813
|
command,
|
|
1791
1814
|
comments,
|
|
1815
|
+
disables,
|
|
1792
1816
|
getOverrides,
|
|
1793
1817
|
gitignore,
|
|
1794
1818
|
hasTypeScript,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.0-beta.
|
|
4
|
+
"version": "3.0.0-beta.13",
|
|
5
5
|
"packageManager": "pnpm@9.10.0",
|
|
6
6
|
"description": "An opinionated ESLint config preset of ntnyq",
|
|
7
7
|
"keywords": [
|
|
@@ -58,23 +58,24 @@
|
|
|
58
58
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
59
59
|
"@eslint/js": "^9.10.0",
|
|
60
60
|
"@eslint/markdown": "^6.1.0",
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
61
|
+
"@types/eslint__js": "^8.42.3",
|
|
62
|
+
"@unocss/eslint-plugin": "^0.62.4",
|
|
63
|
+
"@vitest/eslint-plugin": "^1.1.4",
|
|
63
64
|
"eslint-config-flat-gitignore": "^0.3.0",
|
|
64
65
|
"eslint-flat-config-utils": "^0.4.0",
|
|
65
66
|
"eslint-merge-processors": "^0.1.0",
|
|
66
67
|
"eslint-plugin-antfu": "^2.6.0",
|
|
67
|
-
"eslint-plugin-command": "^0.2.
|
|
68
|
+
"eslint-plugin-command": "^0.2.5",
|
|
68
69
|
"eslint-plugin-import-x": "^4.2.1",
|
|
69
|
-
"eslint-plugin-jsdoc": "^50.2.
|
|
70
|
+
"eslint-plugin-jsdoc": "^50.2.3",
|
|
70
71
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
71
72
|
"eslint-plugin-n": "^17.10.2",
|
|
72
|
-
"eslint-plugin-perfectionist": "^3.
|
|
73
|
+
"eslint-plugin-perfectionist": "^3.6.0",
|
|
73
74
|
"eslint-plugin-prettier": "^5.2.1",
|
|
74
75
|
"eslint-plugin-regexp": "^2.6.0",
|
|
75
76
|
"eslint-plugin-toml": "^0.11.1",
|
|
76
77
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
77
|
-
"eslint-plugin-unused-imports": "^4.1.
|
|
78
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
78
79
|
"eslint-plugin-vue": "^9.28.0",
|
|
79
80
|
"eslint-plugin-yml": "^1.14.0",
|
|
80
81
|
"globals": "^15.9.0",
|
|
@@ -82,25 +83,25 @@
|
|
|
82
83
|
"local-pkg": "^0.5.0",
|
|
83
84
|
"prettier": "^3.3.3",
|
|
84
85
|
"toml-eslint-parser": "^0.10.0",
|
|
85
|
-
"typescript-eslint": "^8.
|
|
86
|
+
"typescript-eslint": "^8.6.0",
|
|
86
87
|
"vue-eslint-parser": "^9.4.3",
|
|
87
88
|
"yaml-eslint-parser": "^1.2.3"
|
|
88
89
|
},
|
|
89
90
|
"devDependencies": {
|
|
90
|
-
"@ntnyq/prettier-config": "^1.21.
|
|
91
|
-
"@types/node": "^22.5.
|
|
91
|
+
"@ntnyq/prettier-config": "^1.21.3",
|
|
92
|
+
"@types/node": "^22.5.5",
|
|
92
93
|
"bumpp": "^9.5.2",
|
|
93
94
|
"eslint": "^9.10.0",
|
|
94
95
|
"eslint-typegen": "^0.3.2",
|
|
95
|
-
"husky": "^9.1.
|
|
96
|
+
"husky": "^9.1.6",
|
|
96
97
|
"jiti": "^1.21.6",
|
|
97
98
|
"nano-staged": "^0.8.0",
|
|
98
|
-
"npm-run-all2": "^6.2.
|
|
99
|
+
"npm-run-all2": "^6.2.3",
|
|
99
100
|
"rimraf": "^6.0.1",
|
|
100
|
-
"tsup": "^8.
|
|
101
|
-
"tsx": "^4.19.
|
|
101
|
+
"tsup": "^8.3.0",
|
|
102
|
+
"tsx": "^4.19.1",
|
|
102
103
|
"typescript": "^5.6.2",
|
|
103
|
-
"zx": "^8.1.
|
|
104
|
+
"zx": "^8.1.6"
|
|
104
105
|
},
|
|
105
106
|
"engines": {
|
|
106
107
|
"node": ">=18.18.0"
|