Skip to content

Commit

Permalink
build(deps-dev): bump stylelint from 15.6.0 to 15.7.0 (#826)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump stylelint from 15.6.0 to 15.7.0

Bumps [stylelint](https://github.com/stylelint/stylelint) from 15.6.0 to 15.7.0.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](stylelint/stylelint@15.6.0...15.7.0)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* function-no-unknown: ignore empty function name

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Krister Kari <krister@sent.at>
  • Loading branch information
dependabot[bot] and kristerkari committed Jun 7, 2023
1 parent 55fa7ae commit 5552324
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 44 deletions.
90 changes: 51 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -28,7 +28,7 @@
"postcss-less": "^6.0.0",
"postcss-scss": "^4.0.6",
"prettier": "^2.8.8",
"stylelint": "^15.6.0"
"stylelint": "^15.7.0"
},
"files": [
"src/**/*.js",
Expand Down
6 changes: 3 additions & 3 deletions src/rules/function-no-unknown/__tests__/index.js
Expand Up @@ -111,7 +111,7 @@ testRule({
code: "a { color: color.unknown(#6b717f, $red: 15); }",
message: messages.rejected("color.unknown"),
line: 1,
column: 12
column: 18
},
{
code: `
Expand All @@ -123,7 +123,7 @@ testRule({
`,
message: messages.rejected("othermodule.myfunction"),
line: 5,
column: 19,
column: 31,
description: "non-matching @use namespace"
},
{
Expand All @@ -136,7 +136,7 @@ testRule({
`,
message: messages.rejected("c.myfunction"),
line: 5,
column: 19,
column: 21,
description: "non-matching @use namespace, 'as' keyword"
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/rules/function-no-unknown/index.js
Expand Up @@ -91,7 +91,7 @@ function rule(primaryOption, secondaryOptions) {
valueParser(node.value).walk(valueNode => {
const { type, value: funcName } = valueNode;

if (type !== "function") {
if (type !== "function" || funcName.trim() === "") {
return;
}

Expand Down

0 comments on commit 5552324

Please sign in to comment.