diff --git a/.changeset/beige-ties-perform.md b/.changeset/beige-ties-perform.md new file mode 100644 index 00000000..59ac23ef --- /dev/null +++ b/.changeset/beige-ties-perform.md @@ -0,0 +1,5 @@ +--- +"eslint-plugin-vue-scoped-css": patch +--- + +fix(deps): bump postcss to 8.4.31 diff --git a/lib/styles/parser/css-parser.ts b/lib/styles/parser/css-parser.ts index e0e4a42b..4d85f391 100644 --- a/lib/styles/parser/css-parser.ts +++ b/lib/styles/parser/css-parser.ts @@ -485,7 +485,11 @@ function getESLintLineAndColumnFromPostCSSNode( offsetLocation, sourceLoc, ); - if (locName === "end") { + if ( + locName === "end" && + // The end location of the PostCSS root node has a different position than other nodes. + node.type !== "root" + ) { // End column is shifted by one. return { line, column: column + 1 }; } diff --git a/package-lock.json b/package-lock.json index 47e84d91..c64d50d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "eslint-utils": "^3.0.0", "lodash": "^4.17.21", - "postcss": "^8.4.6", + "postcss": "^8.4.31", "postcss-safe-parser": "^6.0.0", "postcss-scss": "^4.0.3", "postcss-selector-parser": "^6.0.9", @@ -16244,9 +16244,9 @@ } }, "node_modules/postcss": { - "version": "8.4.24", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz", - "integrity": "sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==", + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", "funding": [ { "type": "opencollective", @@ -37348,9 +37348,9 @@ "dev": true }, "postcss": { - "version": "8.4.24", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz", - "integrity": "sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==", + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", "requires": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", diff --git a/package.json b/package.json index 9e661d00..ae33542b 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "dependencies": { "eslint-utils": "^3.0.0", "lodash": "^4.17.21", - "postcss": "^8.4.6", + "postcss": "^8.4.31", "postcss-safe-parser": "^6.0.0", "postcss-scss": "^4.0.3", "postcss-selector-parser": "^6.0.9",