matype / stylefmt

stylefmt is a tool that automatically formats stylesheets.
Other
2.1k stars 89 forks source link

Update stylelint dependency #314

Open guilhermehn opened 7 years ago

guilhermehn commented 7 years ago

stylefmt is not working with the newer version of stylelint because of the new rule selector-max-id, which deprecates the selector-no-id rule.

stylefmt's stylelint version: 7.10.1 current stylelint version: 7.12.0

lkraav commented 7 years ago

stylelint recently reached 8.0.0

alexander-schranz commented 7 years ago

I'm little bit confused I get: Undefined rule selector-max-id at module.exports (node_modules/stylefmt/node_modules/stylelint/lib/utils/configurationError.js:8:27) with ^5.* it works with stylefmt ^6.0.0 it doesn't. I did set my version back to 5 but not sure why 5 version works and 6 doesn't work with the newest stylelint.

Working:

    "stylefmt": "^5.3.2",
    "stylelint": "^8.1.1",
    "stylelint-config-standard": "^17.0.0",

Not Working:

    "stylefmt": "^6.0.0",
    "stylelint": "^8.1.1",
    "stylelint-config-standard": "^17.0.0",

UPDATE:

I'm not sure why but after a clean install and a restart it works. so maybe issue with yarn.