Skip to content

Commit

Permalink
Fix declaration-property-value-no-unknown false positives for `oklc…
Browse files Browse the repository at this point in the history
…h()`
  • Loading branch information
firefoxic committed Aug 14, 2024
1 parent 32dd6bc commit cf2b6d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and 

- The minimum required version of `stylelint` has been increased to `16.8.1`.

### Fixed

- False positives of `declaration-property-value-no-unknown` rule for `oklch()`.

## [3.0.0] — 2024–06–07

### Changed
Expand Down
10 changes: 9 additions & 1 deletion stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,15 @@ export default {
`flow-root`,
],
},
"declaration-property-value-no-unknown": true,
"declaration-property-value-no-unknown": [
true,
// See: https://github.com/stylelint/stylelint/issues/7241
{
typesSyntax: {
color: `| oklch( [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ <hue> | none] [ / [<alpha-value> | none] ]? )`,
},
},
],
"font-family-name-quotes": `always-where-required`,
"font-family-no-duplicate-names": [
true,
Expand Down

0 comments on commit cf2b6d9

Please sign in to comment.