This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const stylelint = require('stylelint'); | |
const valueParser = require('postcss-value-parser'); | |
const ruleName = 'plugin/valid-css-var'; | |
const messages = stylelint.utils.ruleMessages(ruleName, { | |
expected: (variable) => `Expected "${variable}" to be a valid CSS variable`, | |
}); | |
module.exports = stylelint.createPlugin(ruleName, (primaryOption, secondaryOptions, context) => { | |
return (root, result) => { |