@html-validate/eslint-config 6.8.2 → 6.9.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/cli.mjs +17 -1
- package/dist/cli.mjs.map +2 -2
- package/index.mjs +30 -1
- package/package.json +2 -2
- package/template/eslint.config.mjs.njk +12 -0
package/dist/cli.mjs
CHANGED
|
@@ -8902,7 +8902,7 @@ var require_package = __commonJS({
|
|
|
8902
8902
|
"package.json"(exports, module) {
|
|
8903
8903
|
module.exports = {
|
|
8904
8904
|
name: "@html-validate/eslint-config",
|
|
8905
|
-
version: "6.8.
|
|
8905
|
+
version: "6.8.2",
|
|
8906
8906
|
description: "Eslint sharable config used by the various HTML-validate packages",
|
|
8907
8907
|
keywords: [
|
|
8908
8908
|
"eslint"
|
|
@@ -9387,6 +9387,9 @@ async function writeConfig(options, features) {
|
|
|
9387
9387
|
if (features.angularjs) {
|
|
9388
9388
|
await ensureDependencyExists("@html-validate/eslint-config-angularjs", options);
|
|
9389
9389
|
}
|
|
9390
|
+
if (features.vitest) {
|
|
9391
|
+
await ensureDependencyExists("@html-validate/eslint-config-vitest", options);
|
|
9392
|
+
}
|
|
9390
9393
|
if (features.vue) {
|
|
9391
9394
|
await ensureDependencyExists("@html-validate/eslint-config-vue", options);
|
|
9392
9395
|
}
|
|
@@ -9413,6 +9416,7 @@ async function getFeatures(options, args2) {
|
|
|
9413
9416
|
protractor: args2.protractor ?? Boolean(deps.protractor),
|
|
9414
9417
|
typeinfo: args2.typeinfo ?? (deps.typescript ? "./tsconfig.json" : false),
|
|
9415
9418
|
typescript: args2.typescript ?? Boolean(deps.typescript),
|
|
9419
|
+
vitest: args2.vitest ?? Boolean(deps.vitest),
|
|
9416
9420
|
vue: args2.vue ?? Boolean(deps.vue)
|
|
9417
9421
|
};
|
|
9418
9422
|
}
|
|
@@ -9483,6 +9487,12 @@ parser.add_argument("--disable-angularjs", {
|
|
|
9483
9487
|
dest: "angularjs",
|
|
9484
9488
|
help: "Disable AngularJS support"
|
|
9485
9489
|
});
|
|
9490
|
+
parser.add_argument("--disable-vitest", {
|
|
9491
|
+
action: "store_const",
|
|
9492
|
+
const: false,
|
|
9493
|
+
dest: "vitest",
|
|
9494
|
+
help: "Disable Vitest support"
|
|
9495
|
+
});
|
|
9486
9496
|
parser.add_argument("--disable-vue", {
|
|
9487
9497
|
action: "store_const",
|
|
9488
9498
|
const: false,
|
|
@@ -9526,6 +9536,12 @@ parser.add_argument("--enable-angularjs", {
|
|
|
9526
9536
|
dest: "angularjs",
|
|
9527
9537
|
help: "Enable AngularJS support"
|
|
9528
9538
|
});
|
|
9539
|
+
parser.add_argument("--enable-vitest", {
|
|
9540
|
+
action: "store_const",
|
|
9541
|
+
const: true,
|
|
9542
|
+
dest: "vitest",
|
|
9543
|
+
help: "Enable Vitest support"
|
|
9544
|
+
});
|
|
9529
9545
|
parser.add_argument("--enable-vue", {
|
|
9530
9546
|
action: "store_const",
|
|
9531
9547
|
const: true,
|