@html-validate/eslint-config 6.8.2 → 6.10.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 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.1",
8905
+ version: "6.9.0",
8906
8906
  description: "Eslint sharable config used by the various HTML-validate packages",
8907
8907
  keywords: [
8908
8908
  "eslint"
@@ -8975,11 +8975,11 @@ var require_package = __commonJS({
8975
8975
 
8976
8976
  // src/cli.ts
8977
8977
  var import_argparse = __toESM(require_argparse(), 1);
8978
+ import child_process from "node:child_process";
8978
8979
  import fs2 from "node:fs";
8979
8980
  import path4 from "node:path";
8980
- import child_process from "node:child_process";
8981
- import { promisify as promisify2 } from "node:util";
8982
8981
  import { fileURLToPath as fileURLToPath3 } from "node:url";
8982
+ import { promisify as promisify2 } from "node:util";
8983
8983
 
8984
8984
  // node_modules/find-up/index.js
8985
8985
  import path2 from "node:path";
@@ -9220,7 +9220,7 @@ async function findUp(name, options = {}) {
9220
9220
 
9221
9221
  // src/render.ts
9222
9222
  var import_nunjucks = __toESM(require_nunjucks(), 1);
9223
- import path3 from "path";
9223
+ import path3 from "node:path";
9224
9224
  import prettier from "prettier";
9225
9225
  async function renderNunjucks(src, dst, features) {
9226
9226
  import_nunjucks.default.configure(path3.dirname(src), { trimBlocks: true });
@@ -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,