Skip to content

Commit

Permalink
Bump css-functions-list from 3.2.0 to 3.2.1 (#7242)
Browse files Browse the repository at this point in the history
Closes #7236 and closes #7226 (and related to #7231).
  • Loading branch information
mattxwang committed Oct 17, 2023
1 parent 9941121 commit 6e06398
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-pumas-rest.md
@@ -0,0 +1,5 @@
---
"stylelint": patch
---

Fixed: `function-no-unknown` false positives for `light-dark`, `linear` and `xywh`
12 changes: 12 additions & 0 deletions lib/rules/function-no-unknown/__tests__/index.mjs
Expand Up @@ -31,6 +31,18 @@ testRule({
code: 'a { transform: color.adjust(1px); transform: rgb(color.adjust(1px)); }',
description: 'ignore scss namespaced functions',
},
{
code: 'a { color: light-dark(#777, #000); }',
description: 'explicit light-dark check (ref: #7226)',
},
{
code: 'a { offset-path: xywh(20px 30% 150% 200%); }',
description: 'explicit xywh check',
},
{
code: 'a { animation-timing-function: linear(0, 0.25, 1); }',
description: 'explicit linear check',
},
],

reject: [
Expand Down
1 change: 0 additions & 1 deletion lib/rules/function-no-unknown/index.js
Expand Up @@ -51,7 +51,6 @@ const rule = (primary, secondaryOptions) => {
const functionsList = [
...JSON.parse(fs.readFileSync(functionsListPath.toString(), 'utf8')),
// #5960
'-webkit-gradient',
'color-stop',
'from',
'to',
Expand Down
10 changes: 5 additions & 5 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 @@ -141,7 +141,7 @@
"balanced-match": "^2.0.0",
"colord": "^2.9.3",
"cosmiconfig": "^8.2.0",
"css-functions-list": "^3.2.0",
"css-functions-list": "^3.2.1",
"css-tree": "^2.3.1",
"debug": "^4.3.4",
"fast-glob": "^3.3.1",
Expand Down

0 comments on commit 6e06398

Please sign in to comment.