@ntnyq/eslint-config 7.0.0-beta.27 → 7.0.0-beta.28
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 +708 -500
- package/dist/index.mjs +47 -90
- package/package.json +14 -14
package/dist/index.mjs
CHANGED
|
@@ -41,7 +41,7 @@ import { createTypeScriptImportResolver } from "eslint-import-resolver-typescrip
|
|
|
41
41
|
import globals from "globals";
|
|
42
42
|
import createGitIgnoreConfig from "eslint-config-flat-gitignore";
|
|
43
43
|
import jsConfig from "@eslint/js";
|
|
44
|
-
|
|
44
|
+
// src/globs.ts
|
|
45
45
|
/**
|
|
46
46
|
* @file globs constants
|
|
47
47
|
*/
|
|
@@ -166,8 +166,7 @@ const GLOB_EXCLUDE = [
|
|
|
166
166
|
"**/*.agents",
|
|
167
167
|
"**/.*/skills"
|
|
168
168
|
];
|
|
169
|
-
|
|
170
|
-
//#region src/utils/env.ts
|
|
169
|
+
// src/utils/env.ts
|
|
171
170
|
/**
|
|
172
171
|
* Check whether Pinia is available in the current project.
|
|
173
172
|
*/
|
|
@@ -204,8 +203,7 @@ const hasPrettier = () => isPackageExists("prettier");
|
|
|
204
203
|
* Check whether AutoImport is available in the current project.
|
|
205
204
|
*/
|
|
206
205
|
const hasAutoImport = () => isPackageExists("unplugin-auto-import");
|
|
207
|
-
|
|
208
|
-
//#region src/utils/resolveSubOptions.ts
|
|
206
|
+
// src/utils/resolveSubOptions.ts
|
|
209
207
|
/**
|
|
210
208
|
* Normalize a sub-option value to an object.
|
|
211
209
|
*
|
|
@@ -219,8 +217,7 @@ const hasAutoImport = () => isPackageExists("unplugin-auto-import");
|
|
|
219
217
|
function resolveSubOptions(options, key) {
|
|
220
218
|
return typeof options[key] === "boolean" ? {} : options[key] || {};
|
|
221
219
|
}
|
|
222
|
-
|
|
223
|
-
//#region src/utils/getOverrides.ts
|
|
220
|
+
// src/utils/getOverrides.ts
|
|
224
221
|
/**
|
|
225
222
|
* Read rule overrides from a config sub-option.
|
|
226
223
|
*
|
|
@@ -232,8 +229,7 @@ function getOverrides(options, key) {
|
|
|
232
229
|
const subOptions = resolveSubOptions(options, key);
|
|
233
230
|
return "overrides" in subOptions && subOptions.overrides ? subOptions.overrides : {};
|
|
234
231
|
}
|
|
235
|
-
|
|
236
|
-
//#region src/utils/isInGitHooksOrRunBySpecifyPackages.ts
|
|
232
|
+
// src/utils/isInGitHooksOrRunBySpecifyPackages.ts
|
|
237
233
|
const CHECKED_RUNNER_PACKAGES = [
|
|
238
234
|
"nano-staged",
|
|
239
235
|
"lint-staged",
|
|
@@ -246,8 +242,7 @@ const CHECKED_RUNNER_PACKAGES = [
|
|
|
246
242
|
function isInGitHooksOrRunBySpecifyPackages() {
|
|
247
243
|
return !!(process.env.GIT_PARAMS || process.env.VSCODE_GIT_COMMAND || CHECKED_RUNNER_PACKAGES.some((packageName) => process.env.npm_lifecycle_script?.startsWith(packageName)));
|
|
248
244
|
}
|
|
249
|
-
|
|
250
|
-
//#region src/utils/ensurePackages.ts
|
|
245
|
+
// src/utils/ensurePackages.ts
|
|
251
246
|
/**
|
|
252
247
|
* @copyright {@link https://github.com/antfu/eslint-config}
|
|
253
248
|
*/
|
|
@@ -280,8 +275,7 @@ async function ensurePackages(packages) {
|
|
|
280
275
|
throw new Error(`Failed to install required packages: ${nonExistingPackages.join(", ")}`, { cause: error });
|
|
281
276
|
}
|
|
282
277
|
}
|
|
283
|
-
|
|
284
|
-
//#region src/utils/interopDefault.ts
|
|
278
|
+
// src/utils/interopDefault.ts
|
|
285
279
|
/**
|
|
286
280
|
* Interop default export from a module
|
|
287
281
|
* @param mod - The module
|
|
@@ -291,8 +285,7 @@ async function interopDefault(mod) {
|
|
|
291
285
|
const resolved = await mod;
|
|
292
286
|
return resolved.default || resolved;
|
|
293
287
|
}
|
|
294
|
-
|
|
295
|
-
//#region src/configs/vue.ts
|
|
288
|
+
// src/configs/vue.ts
|
|
296
289
|
const sharedRules = {
|
|
297
290
|
...pluginVue.configs.base.rules,
|
|
298
291
|
...pluginVue.configs.essential.rules,
|
|
@@ -644,6 +637,7 @@ const configVue = (options = {}) => {
|
|
|
644
637
|
plugins: { "vue-perfectionist": pluginVuePerfectionist },
|
|
645
638
|
settings: { "vue-perfectionist": { autoImport: enableAutoImport } },
|
|
646
639
|
rules: {
|
|
640
|
+
"vue-perfectionist/prefer-define-model": "warn",
|
|
647
641
|
"vue-perfectionist/callback-style": "error",
|
|
648
642
|
"vue-perfectionist/consistent-template-ref-name": "error",
|
|
649
643
|
"vue-perfectionist/define-macros-newline": "error",
|
|
@@ -654,6 +648,7 @@ const configVue = (options = {}) => {
|
|
|
654
648
|
allowInlineFunctions: false,
|
|
655
649
|
allowLogical: true
|
|
656
650
|
}],
|
|
651
|
+
"vue-perfectionist/prefer-watch-effect-alias": "error",
|
|
657
652
|
"vue-perfectionist/sort-script-setup": ["error", { groups: [
|
|
658
653
|
["interface", "type"],
|
|
659
654
|
"define-props",
|
|
@@ -680,8 +675,7 @@ const configVue = (options = {}) => {
|
|
|
680
675
|
});
|
|
681
676
|
return configs;
|
|
682
677
|
};
|
|
683
|
-
|
|
684
|
-
//#region src/configs/yml.ts
|
|
678
|
+
// src/configs/yml.ts
|
|
685
679
|
/**
|
|
686
680
|
* @see {@link https://github.com/ota-meshi/eslint-plugin-yml/blob/master/src/configs/base.ts}
|
|
687
681
|
*/
|
|
@@ -748,8 +742,7 @@ const configYml = (options = {}) => {
|
|
|
748
742
|
}
|
|
749
743
|
}];
|
|
750
744
|
};
|
|
751
|
-
|
|
752
|
-
//#region src/configs/html.ts
|
|
745
|
+
// src/configs/html.ts
|
|
753
746
|
/**
|
|
754
747
|
* Config for html files
|
|
755
748
|
*
|
|
@@ -788,8 +781,7 @@ const configHtml = async (options = {}) => {
|
|
|
788
781
|
}
|
|
789
782
|
}];
|
|
790
783
|
};
|
|
791
|
-
|
|
792
|
-
//#region src/configs/node.ts
|
|
784
|
+
// src/configs/node.ts
|
|
793
785
|
/**
|
|
794
786
|
* Config for common files
|
|
795
787
|
*
|
|
@@ -815,8 +807,7 @@ const configNode = (options = {}) => [{
|
|
|
815
807
|
...options.overrides
|
|
816
808
|
}
|
|
817
809
|
}];
|
|
818
|
-
|
|
819
|
-
//#region src/configs/pnpm.ts
|
|
810
|
+
// src/configs/pnpm.ts
|
|
820
811
|
/**
|
|
821
812
|
* Config for pnpm package manager
|
|
822
813
|
*
|
|
@@ -857,8 +848,7 @@ const configPnpm = async (options = {}) => {
|
|
|
857
848
|
});
|
|
858
849
|
return configs;
|
|
859
850
|
};
|
|
860
|
-
|
|
861
|
-
//#region src/configs/sort.ts
|
|
851
|
+
// src/configs/sort.ts
|
|
862
852
|
/**
|
|
863
853
|
* Config for sort keys and values
|
|
864
854
|
*
|
|
@@ -1252,8 +1242,7 @@ const configSort = (options = {}) => {
|
|
|
1252
1242
|
});
|
|
1253
1243
|
return configs;
|
|
1254
1244
|
};
|
|
1255
|
-
|
|
1256
|
-
//#region src/configs/svgo.ts
|
|
1245
|
+
// src/configs/svgo.ts
|
|
1257
1246
|
/**
|
|
1258
1247
|
* Config for svg files
|
|
1259
1248
|
*
|
|
@@ -1282,8 +1271,7 @@ const configSVGO = (options = {}) => {
|
|
|
1282
1271
|
}
|
|
1283
1272
|
}];
|
|
1284
1273
|
};
|
|
1285
|
-
|
|
1286
|
-
//#region src/configs/test.ts
|
|
1274
|
+
// src/configs/test.ts
|
|
1287
1275
|
/**
|
|
1288
1276
|
* Config for test files
|
|
1289
1277
|
*
|
|
@@ -1328,8 +1316,7 @@ const configTest = (options = {}) => {
|
|
|
1328
1316
|
});
|
|
1329
1317
|
return configs;
|
|
1330
1318
|
};
|
|
1331
|
-
|
|
1332
|
-
//#region src/configs/toml.ts
|
|
1319
|
+
// src/configs/toml.ts
|
|
1333
1320
|
/**
|
|
1334
1321
|
* Config for toml files
|
|
1335
1322
|
*
|
|
@@ -1369,8 +1356,7 @@ const configToml = (options = {}) => {
|
|
|
1369
1356
|
}
|
|
1370
1357
|
}];
|
|
1371
1358
|
};
|
|
1372
|
-
|
|
1373
|
-
//#region src/configs/antfu.ts
|
|
1359
|
+
// src/configs/antfu.ts
|
|
1374
1360
|
/**
|
|
1375
1361
|
* Config for common files
|
|
1376
1362
|
*
|
|
@@ -1390,8 +1376,7 @@ const configAntfu = (options = {}) => [{
|
|
|
1390
1376
|
...options.overrides
|
|
1391
1377
|
}
|
|
1392
1378
|
}];
|
|
1393
|
-
|
|
1394
|
-
//#region src/configs/astro.ts
|
|
1379
|
+
// src/configs/astro.ts
|
|
1395
1380
|
/**
|
|
1396
1381
|
* Config for astro files
|
|
1397
1382
|
*
|
|
@@ -1431,8 +1416,7 @@ const configAstro = async (options = {}) => {
|
|
|
1431
1416
|
}
|
|
1432
1417
|
}];
|
|
1433
1418
|
};
|
|
1434
|
-
|
|
1435
|
-
//#region src/configs/jsdoc.ts
|
|
1419
|
+
// src/configs/jsdoc.ts
|
|
1436
1420
|
const SPECIAL_CHAR = {
|
|
1437
1421
|
emptyString: "",
|
|
1438
1422
|
singleSpace: " "
|
|
@@ -1569,8 +1553,7 @@ const configJsdoc = (options = {}) => {
|
|
|
1569
1553
|
}
|
|
1570
1554
|
];
|
|
1571
1555
|
};
|
|
1572
|
-
|
|
1573
|
-
//#region src/configs/jsonc.ts
|
|
1556
|
+
// src/configs/jsonc.ts
|
|
1574
1557
|
/**
|
|
1575
1558
|
* @see {@link https://github.com/ota-meshi/eslint-plugin-jsonc/blob/master/lib/configs/base.ts}
|
|
1576
1559
|
*/
|
|
@@ -1664,8 +1647,7 @@ const configJsonc = (options = {}) => {
|
|
|
1664
1647
|
}
|
|
1665
1648
|
}];
|
|
1666
1649
|
};
|
|
1667
|
-
|
|
1668
|
-
//#region src/configs/ntnyq.ts
|
|
1650
|
+
// src/configs/ntnyq.ts
|
|
1669
1651
|
/**
|
|
1670
1652
|
* Config for common files
|
|
1671
1653
|
*
|
|
@@ -1701,8 +1683,7 @@ const configNtnyq = (options = {}) => [{
|
|
|
1701
1683
|
...options.overrides
|
|
1702
1684
|
}
|
|
1703
1685
|
}];
|
|
1704
|
-
|
|
1705
|
-
//#region src/configs/oxfmt.ts
|
|
1686
|
+
// src/configs/oxfmt.ts
|
|
1706
1687
|
/**
|
|
1707
1688
|
* Config for using oxfmt
|
|
1708
1689
|
*
|
|
@@ -1742,8 +1723,7 @@ const configOxfmt = (options = {}) => {
|
|
|
1742
1723
|
}
|
|
1743
1724
|
}];
|
|
1744
1725
|
};
|
|
1745
|
-
|
|
1746
|
-
//#region src/configs/pinia.ts
|
|
1726
|
+
// src/configs/pinia.ts
|
|
1747
1727
|
/**
|
|
1748
1728
|
* Config for pinia store
|
|
1749
1729
|
*
|
|
@@ -1773,8 +1753,7 @@ const configPinia = (options = {}) => {
|
|
|
1773
1753
|
}
|
|
1774
1754
|
}];
|
|
1775
1755
|
};
|
|
1776
|
-
|
|
1777
|
-
//#region src/configs/depend.ts
|
|
1756
|
+
// src/configs/depend.ts
|
|
1778
1757
|
/**
|
|
1779
1758
|
* Config for optimisations dependency
|
|
1780
1759
|
*
|
|
@@ -1813,8 +1792,7 @@ const configDepend = (options = {}) => {
|
|
|
1813
1792
|
});
|
|
1814
1793
|
return configs;
|
|
1815
1794
|
};
|
|
1816
|
-
|
|
1817
|
-
//#region src/configs/regexp.ts
|
|
1795
|
+
// src/configs/regexp.ts
|
|
1818
1796
|
/**
|
|
1819
1797
|
* @file config for plugin regexp
|
|
1820
1798
|
* @see {@link https://github.com/ota-meshi/eslint-plugin-regexp}
|
|
@@ -1842,8 +1820,7 @@ const configRegexp = (options = {}) => {
|
|
|
1842
1820
|
}
|
|
1843
1821
|
}];
|
|
1844
1822
|
};
|
|
1845
|
-
|
|
1846
|
-
//#region src/configs/svelte.ts
|
|
1823
|
+
// src/configs/svelte.ts
|
|
1847
1824
|
/**
|
|
1848
1825
|
* Config for svelte files
|
|
1849
1826
|
*
|
|
@@ -1929,8 +1906,7 @@ const configSvelte = async (options = {}) => {
|
|
|
1929
1906
|
}
|
|
1930
1907
|
}];
|
|
1931
1908
|
};
|
|
1932
|
-
|
|
1933
|
-
//#region src/configs/unocss.ts
|
|
1909
|
+
// src/configs/unocss.ts
|
|
1934
1910
|
/**
|
|
1935
1911
|
* Config for UnoCSS
|
|
1936
1912
|
*
|
|
@@ -1948,8 +1924,7 @@ const configUnoCSS = (options = {}) => [{
|
|
|
1948
1924
|
...options.overrides
|
|
1949
1925
|
}
|
|
1950
1926
|
}];
|
|
1951
|
-
|
|
1952
|
-
//#region src/commands/index.ts
|
|
1927
|
+
// src/commands/index.ts
|
|
1953
1928
|
const commands = [defineCommand({
|
|
1954
1929
|
name: "regexper",
|
|
1955
1930
|
match: /(\b|\s|^)(@regexper)(\s\S+)?(\b|\s|$)/,
|
|
@@ -1974,8 +1949,7 @@ const commands = [defineCommand({
|
|
|
1974
1949
|
});
|
|
1975
1950
|
}
|
|
1976
1951
|
})];
|
|
1977
|
-
|
|
1978
|
-
//#region src/configs/command.ts
|
|
1952
|
+
// src/configs/command.ts
|
|
1979
1953
|
/**
|
|
1980
1954
|
* Config for using comments as codemod
|
|
1981
1955
|
*
|
|
@@ -1995,8 +1969,7 @@ const configCommand = (options = {}) => [{
|
|
|
1995
1969
|
}),
|
|
1996
1970
|
name: "ntnyq/command"
|
|
1997
1971
|
}];
|
|
1998
|
-
|
|
1999
|
-
//#region src/configs/ignores.ts
|
|
1972
|
+
// src/configs/ignores.ts
|
|
2000
1973
|
/**
|
|
2001
1974
|
* Config for ignore files from linting
|
|
2002
1975
|
*
|
|
@@ -2014,8 +1987,7 @@ const configIgnores = (customIgnores = []) => {
|
|
|
2014
1987
|
ignores
|
|
2015
1988
|
}];
|
|
2016
1989
|
};
|
|
2017
|
-
|
|
2018
|
-
//#region src/configs/importX.ts
|
|
1990
|
+
// src/configs/importX.ts
|
|
2019
1991
|
/**
|
|
2020
1992
|
* Config for imports and exports
|
|
2021
1993
|
*
|
|
@@ -2062,8 +2034,7 @@ const configImportX = (options = {}) => {
|
|
|
2062
2034
|
}
|
|
2063
2035
|
}];
|
|
2064
2036
|
};
|
|
2065
|
-
|
|
2066
|
-
//#region src/configs/unicorn.ts
|
|
2037
|
+
// src/configs/unicorn.ts
|
|
2067
2038
|
/**
|
|
2068
2039
|
* Built-in presets of `eslint-plugin-unicorn`
|
|
2069
2040
|
*/
|
|
@@ -2342,8 +2313,7 @@ const configUnicorn = (options = {}) => {
|
|
|
2342
2313
|
}
|
|
2343
2314
|
}];
|
|
2344
2315
|
};
|
|
2345
|
-
|
|
2346
|
-
//#region src/configs/deMorgan.ts
|
|
2316
|
+
// src/configs/deMorgan.ts
|
|
2347
2317
|
/**
|
|
2348
2318
|
* Config for optimize logic
|
|
2349
2319
|
*
|
|
@@ -2360,8 +2330,7 @@ const configDeMorgan = (options = {}) => [{
|
|
|
2360
2330
|
...options.overrides
|
|
2361
2331
|
}
|
|
2362
2332
|
}];
|
|
2363
|
-
|
|
2364
|
-
//#region src/configs/markdown.ts
|
|
2333
|
+
// src/configs/markdown.ts
|
|
2365
2334
|
/**
|
|
2366
2335
|
* Config for markdown files
|
|
2367
2336
|
*
|
|
@@ -2426,8 +2395,7 @@ const configMarkdown = (options = {}) => {
|
|
|
2426
2395
|
}
|
|
2427
2396
|
];
|
|
2428
2397
|
};
|
|
2429
|
-
|
|
2430
|
-
//#region src/configs/prettier.ts
|
|
2398
|
+
// src/configs/prettier.ts
|
|
2431
2399
|
/**
|
|
2432
2400
|
* Config for using prettier
|
|
2433
2401
|
*
|
|
@@ -2626,8 +2594,7 @@ const PERFECTIONIST = Object.freeze({
|
|
|
2626
2594
|
"unknown"
|
|
2627
2595
|
]
|
|
2628
2596
|
});
|
|
2629
|
-
|
|
2630
|
-
//#region src/configs/specials.ts
|
|
2597
|
+
// src/configs/specials.ts
|
|
2631
2598
|
/**
|
|
2632
2599
|
* Config for special files
|
|
2633
2600
|
*
|
|
@@ -2716,8 +2683,7 @@ const configSpecials = (options = {}) => {
|
|
|
2716
2683
|
if (additionalConfigs) configs.push(...additionalConfigs);
|
|
2717
2684
|
return configs;
|
|
2718
2685
|
};
|
|
2719
|
-
|
|
2720
|
-
//#region src/configs/gitignore.ts
|
|
2686
|
+
// src/configs/gitignore.ts
|
|
2721
2687
|
/**
|
|
2722
2688
|
* Config for respect `.gitignore`
|
|
2723
2689
|
*
|
|
@@ -2735,8 +2701,7 @@ const configGitIgnore = (options = {}) => {
|
|
|
2735
2701
|
name: "ntnyq/gitignore"
|
|
2736
2702
|
}];
|
|
2737
2703
|
};
|
|
2738
|
-
|
|
2739
|
-
//#region src/configs/javascript.ts
|
|
2704
|
+
// src/configs/javascript.ts
|
|
2740
2705
|
const strictRules = {
|
|
2741
2706
|
complexity: ["error", { max: 30 }],
|
|
2742
2707
|
"max-depth": ["error", { max: 5 }],
|
|
@@ -2944,8 +2909,7 @@ const configJSX = () => [{
|
|
|
2944
2909
|
files: [GLOB_JSX_ONLY],
|
|
2945
2910
|
languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } }
|
|
2946
2911
|
}];
|
|
2947
|
-
|
|
2948
|
-
//#region src/configs/typescript.ts
|
|
2912
|
+
// src/configs/typescript.ts
|
|
2949
2913
|
/**
|
|
2950
2914
|
* @see {@link https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/recommended-type-checked.ts}
|
|
2951
2915
|
*/
|
|
@@ -3140,8 +3104,7 @@ const configTypeScript = (options = {}) => {
|
|
|
3140
3104
|
}
|
|
3141
3105
|
];
|
|
3142
3106
|
};
|
|
3143
|
-
|
|
3144
|
-
//#region src/configs/eslintPlugin.ts
|
|
3107
|
+
// src/configs/eslintPlugin.ts
|
|
3145
3108
|
/**
|
|
3146
3109
|
* Config for eslint plugin
|
|
3147
3110
|
*
|
|
@@ -3163,8 +3126,7 @@ const configESLintPlugin = async (options = {}) => {
|
|
|
3163
3126
|
}
|
|
3164
3127
|
}];
|
|
3165
3128
|
};
|
|
3166
|
-
|
|
3167
|
-
//#region src/configs/githubAction.ts
|
|
3129
|
+
// src/configs/githubAction.ts
|
|
3168
3130
|
/**
|
|
3169
3131
|
* Config for github action files
|
|
3170
3132
|
*
|
|
@@ -3190,8 +3152,7 @@ const configGitHubAction = (options = {}) => {
|
|
|
3190
3152
|
}
|
|
3191
3153
|
}];
|
|
3192
3154
|
};
|
|
3193
|
-
|
|
3194
|
-
//#region src/configs/perfectionist.ts
|
|
3155
|
+
// src/configs/perfectionist.ts
|
|
3195
3156
|
/**
|
|
3196
3157
|
* Config for sorting imports, exports, objects and etc
|
|
3197
3158
|
*
|
|
@@ -3349,8 +3310,7 @@ const configPerfectionist = (options = {}) => {
|
|
|
3349
3310
|
});
|
|
3350
3311
|
return configs;
|
|
3351
3312
|
};
|
|
3352
|
-
|
|
3353
|
-
//#region src/configs/unusedImports.ts
|
|
3313
|
+
// src/configs/unusedImports.ts
|
|
3354
3314
|
/**
|
|
3355
3315
|
* Config for remove unused imports
|
|
3356
3316
|
*
|
|
@@ -3382,8 +3342,7 @@ const configUnusedImports = async (options = {}) => {
|
|
|
3382
3342
|
}
|
|
3383
3343
|
}];
|
|
3384
3344
|
};
|
|
3385
|
-
|
|
3386
|
-
//#region src/configs/eslintComments.ts
|
|
3345
|
+
// src/configs/eslintComments.ts
|
|
3387
3346
|
/**
|
|
3388
3347
|
* Config for eslint comments
|
|
3389
3348
|
*
|
|
@@ -3401,8 +3360,7 @@ const configESLintComments = (options = {}) => [{
|
|
|
3401
3360
|
...options.overrides
|
|
3402
3361
|
}
|
|
3403
3362
|
}];
|
|
3404
|
-
|
|
3405
|
-
//#region src/core.ts
|
|
3363
|
+
// src/core.ts
|
|
3406
3364
|
/**
|
|
3407
3365
|
* @file factory function to create ESLint config
|
|
3408
3366
|
*/
|
|
@@ -3527,5 +3485,4 @@ function defineESLintConfig(options = {}, ...userConfigs) {
|
|
|
3527
3485
|
else if (enableOxfmt) formatterConfigs.push(...oxfmtConfigs);
|
|
3528
3486
|
return new FlatConfigComposer(...configs, ...userConfigs, ...formatterConfigs);
|
|
3529
3487
|
}
|
|
3530
|
-
//#endregion
|
|
3531
3488
|
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSON_SCHEMA, GLOB_JSX, GLOB_JSX_ONLY, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_PACKAGE_JSON, GLOB_PINIA_STORE, GLOB_PNPM_WORKSPACE_YAML, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_SRC_EXTENSIONS, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG_JSON, GLOB_TSX, GLOB_TSX_ONLY, GLOB_TYPES, GLOB_TYPE_TEST, GLOB_VUE, GLOB_VUE_COMPOSABLES, GLOB_YAML, PERFECTIONIST, configAntfu, configAstro, configCommand, configDeMorgan, configDepend, configESLintComments, configESLintPlugin, configGitHubAction, configGitIgnore, configHtml, configIgnores, configImportX, configJSX, configJavaScript, configJsdoc, configJsonc, configMarkdown, configNode, configNtnyq, configOxfmt, configPerfectionist, configPinia, configPnpm, configPrettier, configRegexp, configSVGO, configSort, configSpecials, configSvelte, configTest, configToml, configTypeScript, configUnicorn, configUnoCSS, configUnusedImports, configVue, configYml, configsTypeScript, defineESLintConfig, ensurePackages, getOverrides, hasAutoImport, hasOxfmt, hasPinia, hasPrettier, hasShadcnVue, hasTypeScript, hasUnoCSS, hasVitest, hasVue, interopDefault, isInGitHooksOrRunBySpecifyPackages, mergeProcessors, parserJsonc, parserPlain, parserToml, parserTypeScript, parserVue, parserYaml, pluginAntfu, pluginDeMorgan, pluginDepend, pluginESLintComments, pluginGitHubAction, pluginImportX, pluginJsdoc, pluginJsonc, pluginMarkdown, pluginNoOnlyTests, pluginNode, pluginNtnyq, pluginOxfmt, pluginPerfectionist, pluginPinia, pluginPrettier, pluginRegexp, pluginSvgo, pluginToml, pluginTypeScript, pluginUnicorn, pluginUnoCSS, pluginVitest, pluginVue, pluginVuePerfectionist, pluginYml, processorPassThrough, processorVueBlocks, resolveSubOptions };
|
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.28",
|
|
5
5
|
"description": "An opinionated ESLint config preset of ntnyq",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint",
|
|
@@ -91,46 +91,46 @@
|
|
|
91
91
|
"@eslint/markdown": "^8.0.3",
|
|
92
92
|
"@ntnyq/utils": "^0.23.0",
|
|
93
93
|
"@unocss/eslint-plugin": "^66.11.0",
|
|
94
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
94
|
+
"@vitest/eslint-plugin": "^1.6.28",
|
|
95
95
|
"eslint-config-flat-gitignore": "^2.4.0",
|
|
96
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",
|
|
100
|
-
"eslint-plugin-antfu": "^3.
|
|
100
|
+
"eslint-plugin-antfu": "^3.3.1",
|
|
101
101
|
"eslint-plugin-command": "^4.0.0",
|
|
102
|
-
"eslint-plugin-de-morgan": "^2.
|
|
102
|
+
"eslint-plugin-de-morgan": "^2.3.0",
|
|
103
103
|
"eslint-plugin-depend": "^1.5.0",
|
|
104
104
|
"eslint-plugin-github-action": "^0.4.0",
|
|
105
105
|
"eslint-plugin-import-x": "^4.17.1",
|
|
106
|
-
"eslint-plugin-jsdoc": "^65.
|
|
106
|
+
"eslint-plugin-jsdoc": "^65.4.2",
|
|
107
107
|
"eslint-plugin-jsonc": "^3.4.2",
|
|
108
108
|
"eslint-plugin-n": "^18.5.0",
|
|
109
109
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
110
110
|
"eslint-plugin-ntnyq": "^0.19.1",
|
|
111
|
-
"eslint-plugin-oxfmt": "^0.
|
|
112
|
-
"eslint-plugin-perfectionist": "^5.
|
|
111
|
+
"eslint-plugin-oxfmt": "^0.29.0",
|
|
112
|
+
"eslint-plugin-perfectionist": "^5.13.0",
|
|
113
113
|
"eslint-plugin-pinia": "^0.4.2",
|
|
114
114
|
"eslint-plugin-prettier": "^5.5.7",
|
|
115
115
|
"eslint-plugin-regexp": "^3.3.1",
|
|
116
116
|
"eslint-plugin-svgo": "^0.14.1",
|
|
117
117
|
"eslint-plugin-toml": "^1.5.0",
|
|
118
|
-
"eslint-plugin-unicorn": "^
|
|
118
|
+
"eslint-plugin-unicorn": "^79.0.0",
|
|
119
119
|
"eslint-plugin-vue": "^10.11.1",
|
|
120
|
-
"eslint-plugin-vue-perfectionist": "^0.
|
|
120
|
+
"eslint-plugin-vue-perfectionist": "^0.12.0",
|
|
121
121
|
"eslint-plugin-yml": "^3.9.0",
|
|
122
122
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
123
123
|
"globals": "^17.13.0",
|
|
124
124
|
"jsonc-eslint-parser": "^3.3.0",
|
|
125
125
|
"local-pkg": "^1.2.1",
|
|
126
126
|
"toml-eslint-parser": "^1.0.3",
|
|
127
|
-
"typescript-eslint": "^8.
|
|
127
|
+
"typescript-eslint": "^8.72.0",
|
|
128
128
|
"vue-eslint-parser": "^10.4.1",
|
|
129
129
|
"yaml-eslint-parser": "^2.1.0"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": {
|
|
132
132
|
"@types/node": "^26.6.5",
|
|
133
|
-
"@typescript-eslint/types": "^8.
|
|
133
|
+
"@typescript-eslint/types": "^8.72.0",
|
|
134
134
|
"@typescript/native-preview": "npm:typescript@^7.0.2",
|
|
135
135
|
"bumpp": "^12.3.0",
|
|
136
136
|
"consola": "^3.4.2",
|
|
@@ -139,11 +139,11 @@
|
|
|
139
139
|
"husky": "^9.1.7",
|
|
140
140
|
"jiti": "^2.7.0",
|
|
141
141
|
"nano-staged": "^1.0.2",
|
|
142
|
-
"npm-run-all2": "^9.0.
|
|
143
|
-
"oxfmt": "^0.
|
|
142
|
+
"npm-run-all2": "^9.0.4",
|
|
143
|
+
"oxfmt": "^0.74.0",
|
|
144
144
|
"prettier": "^3.9.10",
|
|
145
145
|
"tinyglobby": "^0.2.17",
|
|
146
|
-
"tsdown": "^0.23.
|
|
146
|
+
"tsdown": "^0.23.2",
|
|
147
147
|
"tsx": "^4.23.15",
|
|
148
148
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
149
149
|
"uncase": "^0.3.0",
|