@html-validate/eslint-config 6.7.1 → 6.8.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 +16 -12
- package/dist/cli.mjs.map +4 -4
- package/package.json +6 -6
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.7.
|
|
8905
|
+
version: "6.7.1",
|
|
8906
8906
|
description: "Eslint sharable config used by the various HTML-validate packages",
|
|
8907
8907
|
keywords: [
|
|
8908
8908
|
"eslint"
|
|
@@ -8938,9 +8938,9 @@ var require_package = __commonJS({
|
|
|
8938
8938
|
prepublishOnly: "release-prepublish --retain-scripts"
|
|
8939
8939
|
},
|
|
8940
8940
|
dependencies: {
|
|
8941
|
-
"@eslint/js": "9.
|
|
8941
|
+
"@eslint/js": "9.36.0",
|
|
8942
8942
|
argparse: "2.0.1",
|
|
8943
|
-
eslint: "9.
|
|
8943
|
+
eslint: "9.36.0",
|
|
8944
8944
|
"eslint-config-prettier": "10.1.8",
|
|
8945
8945
|
"eslint-formatter-gitlab": "6.0.1",
|
|
8946
8946
|
"eslint-import-resolver-node": "0.3.9",
|
|
@@ -8948,16 +8948,16 @@ var require_package = __commonJS({
|
|
|
8948
8948
|
"eslint-plugin-array-func": "5.0.2",
|
|
8949
8949
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
8950
8950
|
"eslint-plugin-import": "2.32.0",
|
|
8951
|
-
"eslint-plugin-n": "17.
|
|
8951
|
+
"eslint-plugin-n": "17.23.1",
|
|
8952
8952
|
"eslint-plugin-prettier": "5.5.4",
|
|
8953
8953
|
"eslint-plugin-security": "3.0.1",
|
|
8954
8954
|
"eslint-plugin-sonarjs": "3.0.5",
|
|
8955
|
-
"find-up": "
|
|
8955
|
+
"find-up": "8.0.0",
|
|
8956
8956
|
globals: "16.3.0",
|
|
8957
8957
|
nunjucks: "3.2.4"
|
|
8958
8958
|
},
|
|
8959
8959
|
devDependencies: {
|
|
8960
|
-
esbuild: "0.25.
|
|
8960
|
+
esbuild: "0.25.10"
|
|
8961
8961
|
},
|
|
8962
8962
|
peerDependencies: {
|
|
8963
8963
|
prettier: "^3.0.0"
|
|
@@ -8978,7 +8978,7 @@ var import_argparse = __toESM(require_argparse(), 1);
|
|
|
8978
8978
|
import fs2 from "node:fs";
|
|
8979
8979
|
import path4 from "node:path";
|
|
8980
8980
|
import child_process from "node:child_process";
|
|
8981
|
-
import { promisify } from "node:util";
|
|
8981
|
+
import { promisify as promisify2 } from "node:util";
|
|
8982
8982
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
8983
8983
|
|
|
8984
8984
|
// node_modules/find-up/index.js
|
|
@@ -9142,12 +9142,12 @@ var typeMappings = {
|
|
|
9142
9142
|
file: "isFile"
|
|
9143
9143
|
};
|
|
9144
9144
|
function checkType(type) {
|
|
9145
|
-
if (Object.
|
|
9145
|
+
if (type === "both" || Object.hasOwn(typeMappings, type)) {
|
|
9146
9146
|
return;
|
|
9147
9147
|
}
|
|
9148
9148
|
throw new Error(`Invalid type specified: ${type}`);
|
|
9149
9149
|
}
|
|
9150
|
-
var matchType = (type, stat) => stat[typeMappings[type]]();
|
|
9150
|
+
var matchType = (type, stat) => type === "both" ? stat.isFile() || stat.isDirectory() : stat[typeMappings[type]]();
|
|
9151
9151
|
var toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
9152
9152
|
async function locatePath(paths, {
|
|
9153
9153
|
cwd = process2.cwd(),
|
|
@@ -9169,18 +9169,22 @@ async function locatePath(paths, {
|
|
|
9169
9169
|
}, { concurrency, preserveOrder });
|
|
9170
9170
|
}
|
|
9171
9171
|
|
|
9172
|
-
// node_modules/unicorn-magic/node.js
|
|
9172
|
+
// ../../node_modules/unicorn-magic/node.js
|
|
9173
|
+
import { promisify } from "node:util";
|
|
9174
|
+
import { execFile as execFileCallback, execFileSync as execFileSyncOriginal } from "node:child_process";
|
|
9173
9175
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
9176
|
+
var execFileOriginal = promisify(execFileCallback);
|
|
9174
9177
|
function toPath2(urlOrPath) {
|
|
9175
9178
|
return urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath;
|
|
9176
9179
|
}
|
|
9180
|
+
var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
9177
9181
|
|
|
9178
9182
|
// node_modules/find-up/index.js
|
|
9179
9183
|
var findUpStop = Symbol("findUpStop");
|
|
9180
9184
|
async function findUpMultiple(name, options = {}) {
|
|
9181
9185
|
let directory = path2.resolve(toPath2(options.cwd) ?? "");
|
|
9182
9186
|
const { root } = path2.parse(directory);
|
|
9183
|
-
const stopAt = path2.resolve(directory, toPath2(options.stopAt ?? root)
|
|
9187
|
+
const stopAt = path2.resolve(directory, toPath2(options.stopAt) ?? root);
|
|
9184
9188
|
const limit = options.limit ?? Number.POSITIVE_INFINITY;
|
|
9185
9189
|
const paths = [name].flat();
|
|
9186
9190
|
const runMatcher = async (locateOptions) => {
|
|
@@ -9239,7 +9243,7 @@ async function renderNunjucks(src, dst, features) {
|
|
|
9239
9243
|
var pkg = require_package();
|
|
9240
9244
|
var __filename = fileURLToPath3(import.meta.url);
|
|
9241
9245
|
var __dirname = path4.dirname(__filename);
|
|
9242
|
-
var exec =
|
|
9246
|
+
var exec = promisify2(child_process.exec);
|
|
9243
9247
|
var templateDir = path4.join(__dirname, "../template");
|
|
9244
9248
|
var PACKAGE_JSON = "package.json";
|
|
9245
9249
|
async function getRootDir() {
|