Skip to content

Commit db65db3

Browse files
crisbetowagnermaciel
authored andcommitted
build: fix compilation error with new version of stylelint (#24410)
Fixes that one of our lint rules wasn't compiling with the latest version of Stylelint. This is breaking #24406. (cherry picked from commit e6774f0)
1 parent 2c73b2d commit db65db3

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
"semver": "^7.3.5",
207207
"send": "^0.17.2",
208208
"shelljs": "^0.8.5",
209-
"stylelint": "^14.3.0",
209+
"stylelint": "^14.5.0",
210210
"terser": "^5.10.0",
211211
"ts-node": "^10.4.0",
212212
"tsec": "0.2.1",

tools/stylelint/no-prefixes/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {NeedsPrefix} from './needs-prefix';
55
const parseSelector = require('stylelint/lib/utils/parseSelector');
66
const ruleName = 'material/no-prefixes';
77
const messages = utils.ruleMessages(ruleName, {
8-
property: (property: string, browsers: string[]) => {
9-
return `Unprefixed property "${property}" needs a prefix for browsers ${browsers.join(', ')}.`;
8+
property: (property: string, browsers: string) => {
9+
return `Unprefixed property "${property}" needs a prefix for browsers ${browsers}.`;
1010
},
1111
value: (property, value) => `Unprefixed value in "${property}: ${value}".`,
1212
atRule: name => `Unprefixed @rule "${name}".`,
@@ -39,7 +39,7 @@ const plugin = createPlugin(ruleName, (isEnabled: boolean, {filePattern, browser
3939
utils.report({
4040
result,
4141
ruleName,
42-
message: messages.property(decl.prop, propertyPrefixes),
42+
message: messages.property(decl.prop, propertyPrefixes.join(', ')),
4343
node: decl,
4444
index: (decl.raws.before || '').length,
4545
});

yarn.lock

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@
367367

368368
"@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#53288ecf017db68dae5f3c3c5d7f083cb3cead66":
369369
version "0.0.0-366b75358638462665784668cb763f3721ee8cc8"
370-
uid "53288ecf017db68dae5f3c3c5d7f083cb3cead66"
371370
resolved "https://github.com/angular/dev-infra-private-builds.git#53288ecf017db68dae5f3c3c5d7f083cb3cead66"
372371
dependencies:
373372
"@actions/core" "^1.4.0"
@@ -5774,6 +5773,11 @@ css-blank-pseudo@^3.0.2:
57745773
dependencies:
57755774
postcss-selector-parser "^6.0.9"
57765775

5776+
css-functions-list@^3.0.0:
5777+
version "3.0.1"
5778+
resolved "https://registry.yarnpkg.com/css-functions-list/-/css-functions-list-3.0.1.tgz#1460df7fb584d1692c30b105151dbb988c8094f9"
5779+
integrity sha512-PriDuifDt4u4rkDgnqRCLnjfMatufLmWNfQnGCq34xZwpY3oabwhB9SqRBmuvWUgndbemCFlKqg+nO7C2q0SBw==
5780+
57775781
css-has-pseudo@^3.0.3:
57785782
version "3.0.4"
57795783
resolved "https://registry.yarnpkg.com/css-has-pseudo/-/css-has-pseudo-3.0.4.tgz#57f6be91ca242d5c9020ee3e51bbb5b89fc7af73"
@@ -12532,7 +12536,7 @@ postcss@8.4.5:
1253212536
picocolors "^1.0.0"
1253312537
source-map-js "^1.0.1"
1253412538

12535-
postcss@8.4.6, postcss@^8.1.7, postcss@^8.2.14, postcss@^8.2.15, postcss@^8.3.7, postcss@^8.4.5:
12539+
postcss@8.4.6, postcss@^8.1.7, postcss@^8.2.14, postcss@^8.2.15, postcss@^8.3.7, postcss@^8.4.5, postcss@^8.4.6:
1253612540
version "8.4.6"
1253712541
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.6.tgz#c5ff3c3c457a23864f32cb45ac9b741498a09ae1"
1253812542
integrity sha512-OovjwIzs9Te46vlEx7+uXB0PLijpwjXGKXjVGGPIGubGpq7uh5Xgf6D6FiJ/SzJMBosHDp6a2hiXOS97iBXcaA==
@@ -14503,14 +14507,15 @@ style-search@^0.1.0:
1450314507
resolved "https://registry.yarnpkg.com/style-search/-/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902"
1450414508
integrity sha1-eVjHk+R+MuB9K1yv5cC/jhLneQI=
1450514509

14506-
stylelint@^14.3.0:
14507-
version "14.3.0"
14508-
resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-14.3.0.tgz#26b62730da7b3dc320021fc469d80048d7b77ebe"
14509-
integrity sha512-PZXSwtJe4f4qBPWBwAbHL0M0Qjrv8iHN+cLpUNsffaVMS3YzpDDRI73+2lsqLAYfQEzxRwpll6BDKImREbpHWA==
14510+
stylelint@^14.5.0:
14511+
version "14.5.0"
14512+
resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-14.5.0.tgz#d94252027164bc918303a6b782652931421d8871"
14513+
integrity sha512-4dvQjrhAz2njLoE1OvUEZpryNWcmx2w5Lq5jlibxFv6b5W6O8/vob12M2ZzhX3Ndzs5f67F+BEYmhnQXOwfVYQ==
1451014514
dependencies:
1451114515
balanced-match "^2.0.0"
1451214516
colord "^2.9.2"
1451314517
cosmiconfig "^7.0.1"
14518+
css-functions-list "^3.0.0"
1451414519
debug "^4.3.3"
1451514520
execall "^2.0.0"
1451614521
fast-glob "^3.2.11"
@@ -14532,7 +14537,7 @@ stylelint@^14.3.0:
1453214537
normalize-path "^3.0.0"
1453314538
normalize-selector "^0.2.0"
1453414539
picocolors "^1.0.0"
14535-
postcss "^8.4.5"
14540+
postcss "^8.4.6"
1453614541
postcss-media-query-parser "^0.2.3"
1453714542
postcss-resolve-nested-selector "^0.1.1"
1453814543
postcss-safe-parser "^6.0.0"

0 commit comments

Comments
 (0)