Add getTestPackage
to verify various attributes of packages
#110
Labels
status: ready to implement
is ready to be worked on by someone
What is the problem you're trying to solve?
see:
testRule
andtestRuleConfigs
help people to write rule tests (as the name suggess :D ) but maintaining a good npm package with a Stylelint rule goes beyond writing rules.For the PostCSS plugins we author under
@csstools
we found that we make the same mistakes over and over again and that we weren't following the PostCSS guidelines for plugins.Things we often did wrong:
postcss-
postcss-plugin
was missing fromkeywords
postcss
was not a peer dependencyIn Stylelint we also have guidelines and docs for writing rules and they contain similar aspects: https://github.com/stylelint/stylelint/blob/main/docs/developer-guide/plugins.md#peer-dependencies
What solution would you like to see?
Maybe we can create a
getTestPackage
function that contains tests forpackage.json
?This has two benefits:
The text was updated successfully, but these errors were encountered: