diff --git a/package-lock.json b/package-lock.json index ebabab5d4..e60231a72 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "glob": "^7.2.0", "node-fetch": "^2.6.2", "parse-glob": "3.0.4", - "strip-json-comments": "^4.0.0", + "strip-json-comments": "3.1.0", "xml": "1.0.1" }, "bin": { @@ -3908,18 +3908,6 @@ "node": ">=8" } }, - "node_modules/eslint/node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/espree": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/espree/-/espree-9.1.0.tgz", @@ -11259,14 +11247,11 @@ } }, "node_modules/strip-json-comments": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-4.0.0.tgz", - "integrity": "sha512-LzWcbfMbAsEDTRmhjWIioe8GcDRl0fa35YMXFoJKDdiD/quGFmjJjdgPjFJJNwCMaLyQqFIDqCdHD2V4HfLgYA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.0.tgz", + "integrity": "sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w==", "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, "node_modules/supports-color": { @@ -14970,12 +14955,6 @@ "requires": { "ansi-regex": "^5.0.1" } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true } } }, @@ -20491,9 +20470,9 @@ } }, "strip-json-comments": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-4.0.0.tgz", - "integrity": "sha512-LzWcbfMbAsEDTRmhjWIioe8GcDRl0fa35YMXFoJKDdiD/quGFmjJjdgPjFJJNwCMaLyQqFIDqCdHD2V4HfLgYA==" + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.0.tgz", + "integrity": "sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w==" }, "supports-color": { "version": "5.5.0", diff --git a/package.json b/package.json index a0e7699a7..3b8d99400 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "glob": "^7.2.0", "node-fetch": "^2.6.2", "parse-glob": "3.0.4", - "strip-json-comments": "^4.0.0", + "strip-json-comments": "3.1.0", "xml": "1.0.1" }, "devDependencies": { diff --git a/src/cli/htmlhint.ts b/src/cli/htmlhint.ts index 395a0d1dc..ea18c5572 100644 --- a/src/cli/htmlhint.ts +++ b/src/cli/htmlhint.ts @@ -9,7 +9,7 @@ import { IGlob } from 'glob' import * as parseGlob from 'parse-glob' import { dirname, resolve, sep } from 'path' import fetch from 'node-fetch' -import stripJsonComments from 'strip-json-comments' +import * as stripJsonComments from 'strip-json-comments' import type { HTMLHint as IHTMLHint } from '../core/core' import type { Hint, Ruleset } from '../core/types' import { Formatter } from './formatter'