Netcentric / stylelint-config

Cognizant Netcentric's coding and style rules for Stylelint
Apache License 2.0
4 stars 1 forks source link

Plugin cannot be installed if using stylelint greater than v14.5 #6

Closed raohmaru closed 2 years ago

raohmaru commented 2 years ago

The semver of the peer dependency stylelint defined in the package.json allows only for minor versions updates:

~14.5.3 := >=14.5.3 <14.(5+1).3 := >=14.5.3 <14.6.0

Since @netcentric/stylelint-config is a plugin, peer dependencies should be less strict. Usually breaking changes in dependencies happen in major versions.

Expected Behaviour

@netcentric/stylelint-config can be installed in a project using stylelint v14.x.

Actual Behaviour

If a project uses stylelint greater than v14.5, npm raises an "unable to resolve dependency tree" error and @netcentric/stylelint-config cannot be installed.