prettier-stylelint icon indicating copy to clipboard operation
prettier-stylelint copied to clipboard

Undefined rule font-family-no-missing-generic-family-keyword

Open eldair opened this issue 8 years ago • 6 comments

Started getting error Undefined rule font-family-no-missing-generic-family-keyword on format after updating stylelint-config-standard, probably outdated stylelint version?

eldair avatar Dec 29 '17 12:12 eldair

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>

mstanaland avatar Dec 29 '17 15:12 mstanaland

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.)

jeddy3 avatar Dec 29 '17 16:12 jeddy3

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.

MarkSky avatar Feb 02 '18 07:02 MarkSky

Any news about this?

timhecker avatar Mar 06 '18 10:03 timhecker

This is a huge pain, we have to manually run npm --depth 1 update each time a parent package updates.

eldair avatar Mar 07 '18 12:03 eldair

Thanks, but I'm a yarn user: I'm waiting for some update in VScode stylelint extension.

timhecker avatar Mar 09 '18 22:03 timhecker