@@ -14,7 +14,7 @@ import {
1414 propertyValues ,
1515 atRules ,
1616 mediaConditions ,
17- types ,
17+ functions ,
1818 selectors ,
1919} from "../data/baseline-data.js" ;
2020import { namedColors } from "../data/colors.js" ;
@@ -26,7 +26,7 @@ import { namedColors } from "../data/colors.js";
2626/**
2727 * @import { CSSRuleDefinition } from "../types.js"
2828 * @import { Identifier, FunctionNodePlain } from "@eslint/css-tree"
29- * @typedef {"notBaselineProperty" | "notBaselinePropertyValue" | "notBaselineAtRule" | "notBaselineType " | "notBaselineMediaCondition" | "notBaselineSelector" } UseBaselineMessageIds
29+ * @typedef {"notBaselineProperty" | "notBaselinePropertyValue" | "notBaselineAtRule" | "notBaselineFunction " | "notBaselineMediaCondition" | "notBaselineSelector" } UseBaselineMessageIds
3030 * @typedef {[{
3131 * available?: "widely" | "newly" | number,
3232 * allowAtRules?: string[],
@@ -475,8 +475,8 @@ export default {
475475 "Value '{{value}}' of property '{{property}}' is not a {{availability}} available baseline feature." ,
476476 notBaselineAtRule :
477477 "At-rule '@{{atRule}}' is not a {{availability}} available baseline feature." ,
478- notBaselineType :
479- "Type '{{type }}' is not a {{availability}} available baseline feature." ,
478+ notBaselineFunction :
479+ "Function '{{function }}' is not a {{availability}} available baseline feature." ,
480480 notBaselineMediaCondition :
481481 "Media condition '{{condition}}' is not a {{availability}} available baseline feature." ,
482482 notBaselineSelector :
@@ -537,7 +537,7 @@ export default {
537537 * @returns {void }
538538 **/
539539 function checkPropertyValueFunction ( child ) {
540- const featureStatus = types . get ( child . name ) ;
540+ const featureStatus = functions . get ( child . name ) ;
541541
542542 // if we don't know of any possible property values, just skip it
543543 if ( featureStatus === undefined ) {
@@ -547,9 +547,9 @@ export default {
547547 if ( ! baselineAvailability . isSupported ( featureStatus ) ) {
548548 context . report ( {
549549 loc : child . loc ,
550- messageId : "notBaselineType " ,
550+ messageId : "notBaselineFunction " ,
551551 data : {
552- type : child . name ,
552+ function : child . name ,
553553 availability : String ( baselineAvailability . availability ) ,
554554 } ,
555555 } ) ;
0 commit comments