Skip to content

Commit

Permalink
build(stylelint): bump stylelint plugins to latest
Browse files Browse the repository at this point in the history
Disabled the `function-no-unknown` rule since there are too many
false-positives. It is not able to parse `@use`... here are some example
failures:

```sh
packages/alert/src/_variables.scss
 49:45  ✖  Unexpected unknown function "map.get"  function-no-unknown
 56:35  ✖  Unexpected unknown function "if"       function-no-unknown
 71:30  ✖  Unexpected unknown function "if"       function-no-unknown
 81:19  ✖  Unexpected unknown function "if"       function-no-unknown

packages/app-bar/src/_mixins.scss
 293:14  ✖  Unexpected unknown function "rmd-utils-validate"  function-no-unknown

packages/app-bar/src/_variables.scss
  79:40  ✖  Unexpected unknown function "rmd-theme-var"   function-no-unknown
  85:29  ✖  Unexpected unknown function "rmd-theme-var"   function-no-unknown
  92:42  ✖  Unexpected unknown function "rmd-theme-var"   function-no-unknown
  99:31  ✖  Unexpected unknown function "rmd-theme-var"   function-no-unknown
 115:41  ✖  Unexpected unknown function "if"              function-no-unknown
 116:3   ✖  Unexpected unknown function "rmd-theme-tone"  function-no-unknown
 135:40  ✖  Unexpected unknown function "if"              function-no-unknown
 136:3   ✖  Unexpected unknown function "rmd-theme-tone"  function-no-unknown
 147:40  ✖  Unexpected unknown function "if"              function-no-unknown
 148:3   ✖  Unexpected unknown function "rmd-theme-tone"  function-no-unknown
 159:29  ✖  Unexpected unknown function "if"              function-no-unknown
 160:3   ✖  Unexpected unknown function "rmd-theme-tone"  function-no-unknown
 171:10  ✖  Unexpected unknown function "rmd-theme-var"   function-no-unknown

packages/avatar/src/_variables.scss
 30:3   ✖  Unexpected unknown function "if"                    function-no-unknown
 31:5   ✖  Unexpected unknown function "rmd-theme-tone"        function-no-unknown
 55:26  ✖  Unexpected unknown function "rmd-typography-value"  function-no-unknown
```
  • Loading branch information
mlaursen committed Mar 18, 2022
1 parent d0920fb commit 2bb6429
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"no-invalid-position-at-import-rule": null,
"color-function-notation": null,
"max-line-length": null,
"function-no-unknown": null,
"value-no-vendor-prefix": true
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
"react-dom": "^17.0.1",
"react-test-renderer": "^17.0.2",
"stylelint": "^14.3.0",
"stylelint-config-recommended": "^6.0.0",
"stylelint-config-standard": "^24.0.0",
"stylelint-config-recommended": "^7.0.0",
"stylelint-config-standard": "^25.0.0",
"stylelint-config-standard-scss": "^3.0.0",
"stylelint-order": "^5.0.0",
"stylelint-scss": "^4.1.0",
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12686,6 +12686,11 @@ stylelint-config-recommended@^6.0.0:
resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-6.0.0.tgz#fd2523a322836005ad9bf473d3e5534719c09f9d"
integrity sha512-ZorSSdyMcxWpROYUvLEMm0vSZud2uB7tX1hzBZwvVY9SV/uly4AvvJPPhCcymZL3fcQhEQG5AELmrxWqtmzacw==

stylelint-config-recommended@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-7.0.0.tgz#7497372ae83ab7a6fffc18d7d7b424c6480ae15e"
integrity sha512-yGn84Bf/q41J4luis1AZ95gj0EQwRX8lWmGmBwkwBNSkpGSpl66XcPTulxGa/Z91aPoNGuIGBmFkcM1MejMo9Q==

stylelint-config-standard-scss@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/stylelint-config-standard-scss/-/stylelint-config-standard-scss-3.0.0.tgz#dafc4fa5538d0ed833bf0a7d391e075683ffd96c"
Expand All @@ -12701,6 +12706,13 @@ stylelint-config-standard@^24.0.0:
dependencies:
stylelint-config-recommended "^6.0.0"

stylelint-config-standard@^25.0.0:
version "25.0.0"
resolved "https://registry.yarnpkg.com/stylelint-config-standard/-/stylelint-config-standard-25.0.0.tgz#2c916984e6655d40d6e8748b19baa8603b680bff"
integrity sha512-21HnP3VSpaT1wFjFvv9VjvOGDtAviv47uTp3uFmzcN+3Lt+RYRv6oAplLaV51Kf792JSxJ6svCJh/G18E9VnCA==
dependencies:
stylelint-config-recommended "^7.0.0"

stylelint-order@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/stylelint-order/-/stylelint-order-5.0.0.tgz#abd20f6b85ac640774cbe40e70d3fe9c6fdf4400"
Expand Down

0 comments on commit 2bb6429

Please sign in to comment.