Closed
Description
Stylelint v15 has deprecated many rules (see also #272), but all of them are still included. However, the strict peer dependency check in npm
doesn't allow installing the latest stylelint-config-sass-guidelines
with Stylelint v15:
$ npm install -D stylelint@15
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/stylelint
npm ERR! peer stylelint@">=14.0.0" from [email protected]
npm ERR! node_modules/stylelint-config-html
npm ERR! dev stylelint-config-html@"^1.1.0" from the root project
npm ERR! peer stylelint@"^14.5.1 || ^15.0.0" from [email protected]
npm ERR! node_modules/stylelint-scss
npm ERR! stylelint-scss@"^4.0.0" from [email protected]
npm ERR! node_modules/stylelint-config-sass-guidelines
npm ERR! dev stylelint-config-sass-guidelines@"^9.0.1" from the root project
npm ERR! 2 more (the root project, stylelint-config-standard)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer stylelint@"^14.0.1" from [email protected]
npm ERR! node_modules/stylelint-config-sass-guidelines
npm ERR! dev stylelint-config-sass-guidelines@"^9.0.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/stylelint
npm ERR! peer stylelint@"^14.0.1" from [email protected]
npm ERR! node_modules/stylelint-config-sass-guidelines
npm ERR! dev stylelint-config-sass-guidelines@"^9.0.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
To at least allow upgrading Stylelint to start using the new rules/fixes, and slowly migrate away from the deprecated rules, could the peer dependency version be changed from ^14.0.1
to ^14.0.1 || ^15.0.0
?
This could be released as a minor or patch version, while removing deprecated rules like suggested in #272 would be a breaking change.
Metadata
Metadata
Assignees
Labels
No labels