@html-validate/eslint-config 9.4.6 → 9.6.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 +4 -4
- package/dist/cli.mjs.map +2 -2
- package/index.mjs +31 -114
- package/package.json +4 -4
- package/template/eslint.config.mjs.njk +0 -12
package/dist/cli.mjs
CHANGED
|
@@ -8906,7 +8906,7 @@ var require_package = __commonJS({
|
|
|
8906
8906
|
"package.json"(exports, module) {
|
|
8907
8907
|
module.exports = {
|
|
8908
8908
|
name: "@html-validate/eslint-config",
|
|
8909
|
-
version: "9.
|
|
8909
|
+
version: "9.5.0",
|
|
8910
8910
|
description: "Eslint sharable config used by the various HTML-validate packages",
|
|
8911
8911
|
keywords: [
|
|
8912
8912
|
"eslint"
|
|
@@ -8955,8 +8955,8 @@ var require_package = __commonJS({
|
|
|
8955
8955
|
"eslint-plugin-prettier": "5.5.6",
|
|
8956
8956
|
"eslint-plugin-regexp": "3.1.0",
|
|
8957
8957
|
"eslint-plugin-security": "4.0.1",
|
|
8958
|
-
"eslint-plugin-sonarjs": "4.0
|
|
8959
|
-
"eslint-plugin-unicorn": "
|
|
8958
|
+
"eslint-plugin-sonarjs": "4.1.0",
|
|
8959
|
+
"eslint-plugin-unicorn": "67.0.0",
|
|
8960
8960
|
"find-up": "8.0.0",
|
|
8961
8961
|
globals: "17.3.0",
|
|
8962
8962
|
nunjucks: "3.2.4"
|
|
@@ -9350,7 +9350,7 @@ async function ensurePkgScript(script, command, options) {
|
|
|
9350
9350
|
const dst = path4.join(options.rootDir, PACKAGE_JSON);
|
|
9351
9351
|
const data = fs2.readFileSync(dst, "utf-8");
|
|
9352
9352
|
const pkg2 = JSON.parse(data);
|
|
9353
|
-
if (pkg2.scripts && pkg2.scripts
|
|
9353
|
+
if (pkg2.scripts && Object.hasOwn(pkg2.scripts, script) && pkg2.scripts[script] === command) {
|
|
9354
9354
|
return;
|
|
9355
9355
|
}
|
|
9356
9356
|
options.changes++;
|