Skip to content

Can I control the version of spectral-rulesets used when installing spectral-cli? #2184

Answered by philsturgeon
jdaly2k asked this question in Q&A
Discussion options

You must be logged in to vote

There is not, but we're not about making breaking changes in rulesets unless there is a major version. For the bundled rulesets this should not be a concern.

For your own rulesets try and follow the same logic. Whoever is releasing rulesets can add new rules as warnings, and make them errors only when they're confident teams have avoided the warning. This takes a little management, but its a lot easier than adding the complexities of version management, and means new rules actually make it out into the ecosystem instead of leaving folks stuck on old versions missing most of your rules.

Or you can distribute rulesets as NPM packages and rely on the NPM version management. https://meta.stop…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jdaly2k
Comment options

@P0lip
Comment options

@OllieTho
Comment options

Answer selected by jdaly2k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants