hudochenkov / stylelint-order

A plugin pack of order related linting rules for Stylelint.
MIT License
916 stars 61 forks source link

Update to PostCSS 8 #126

Closed XhmikosR closed 3 years ago

XhmikosR commented 4 years ago

Just opening an issue to track this :)

hudochenkov commented 4 years ago

Blocked by stylelint https://github.com/stylelint/stylelint/issues/4942. Plugin could not be using PostCSS 8 until stylelint using it.

machinshin commented 3 years ago

stylelint has migrated over to PostCSS8.

  "extends": "stylelint-config-sass-guidelines",

now fails

postcss-sorting: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
TypeError: Cannot read properties of undefined (reading 'unprefixed')
    at /foo/app/assets/stylesheets/_svg.scss:5:5
    at processEveryNode (/foo/node_modules/stylelint-order/rules/properties-alphabetical-order/checkNode.js:26:43)
    at Rule.each (/foo/node_modules/postcss/lib/container.js:41:16)
    at checkNode (/foo/node_modules/stylelint-order/rules/properties-alphabetical-order/checkNode.js:11:7)
    at processRulesAndAtrules (/foo/node_modules/stylelint-order/rules/properties-alphabetical-order/index.js:55:5)
    at /foo/node_modules/postcss/lib/container.js:55:18
    at Rule.each (/foo/node_modules/postcss/lib/container.js:41:16)
    at Rule.walk (/foo/node_modules/postcss/lib/container.js:52:17)
    at /foo/node_modules/postcss/lib/container.js:60:24
    at AtRule.each (/foo/node_modules/postcss/lib/container.js:41:16)
    at AtRule.walk (/foo/node_modules/postcss/lib/container.js:52:17)
hudochenkov commented 3 years ago

@machinshin Use stylelint-order@5.0.0.

hudochenkov commented 3 years ago

@XhmikosR it is now using PostCSS 8 in version 5.