You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node version: v20.0.0
npm version: v9.6.4
Local ESLint version: v9.21.0 (Currently used)
Global ESLint version: Not found
@eslint/css version: 0.4.0
Operating System: darwin 23.6.0
Thanks for the report. I've confirmed that this is a bug. I knew there were some edge cases where functions weren't getting flagged but just didn't have the time to investigate before the release. If you're up for submitting a pull request, we'd happily accept.
Environment
Node version: v20.0.0
npm version: v9.6.4
Local ESLint version: v9.21.0 (Currently used)
Global ESLint version: Not found
@eslint/css version: 0.4.0
Operating System: darwin 23.6.0
Which language are you using?
stylesheet
What did you do?
Configuration
What did you expect to happen?
ESLint should warn when Baseline newly available features like
color-mix
andconic-gradient
are used.I'd also expect the
types
map within baseline-data.js to include entries for functions likecolor-mix
andconic-gradient
.There is a related
color
entry, but its Baseline status should be Newly available (5) according to MDN.What actually happened?
ESLint doesn't emit any warnings for these newly available features, despite the config being set to widely available.
color-mix
andconic-gradient
aren't listed in thetypes
map, andcolor
has a Baseline status of Widely available (10).Link to Minimal Reproducible Example
https://github.com/rviscomi/baseline-demos/blob/main/eslint/src/functions.css
Participation
Additional comments
The
cssTypePattern
regex seems to be responsible for this:css/tools/generate-baseline.js
Line 77 in 9c7fd6a
The text was updated successfully, but these errors were encountered: