Undefined rule font-family-no-missing-generic-family-keyword
Started getting error Undefined rule font-family-no-missing-generic-family-keyword on format after updating stylelint-config-standard, probably outdated stylelint version?
I'm trying to get started with prettier-stylelint, and I'm getting the same error. Was thinking I had a bad config, but maybe there is bug or incompatible versions.
My stylelint.config.js is pretty basic:
module.exports = {
extends: [
"stylelint-config-recommended-scss",
"./node_modules/prettier-stylelint/config.js"
]
};
And here's the error it throws for each file:
Error: Undefined rule font-family-no-missing-generic-family-keyword
at module.exports (/Users/mstanaland/Desktop/account-react/node_modules/stylelint/lib/utils/configurationError.js:8:27)
at Object.keys.forEach.ruleName (/Users/mstanaland/Desktop/account-react/node_modules/stylelint/lib/augmentConfig.js:278:13)
at Array.forEach (<anonymous>)
at normalizeAllRuleSettings (/Users/mstanaland/Desktop/account-react/node_modules/stylelint/lib/augmentConfig.js:274:29)
at augmentConfigBasic.then.then.then.then.augmentedConfig (/Users/mstanaland/Desktop/account-react/node_modules/stylelint/lib/augmentConfig.js:83:12)
at <anonymous>
Try npm --depth 1 update.
font-family-no-missing-generic-family-keyword was introduced in [email protected] and this package does have a dependency range that includes that version.
(This probably won't work if use yarn as the lockfile pins stylelint to 8.1.1. I believe a new version of this package will need to be published if it wishes to be compatible with the stylelint version of config-standard and config-recommended.)
I have the same error :Undefined rule font-family-no-missing-generic-family-keyword, when set font-family-no-missing-generic-family-keyword": true, in .stylelintrc file.
Any news about this?
This is a huge pain, we have to manually run npm --depth 1 update each time a parent package updates.
Thanks, but I'm a yarn user: I'm waiting for some update in VScode stylelint extension.