stylelint-formatter-diff
v1.0.0
Published
Removes non-diff violations from Stylelint results.
Maintainers
Readme
About
Removes non-diff violations from Stylelint results.
Installation
npm install --save-dev stylelint-formatter-diffUsage
Check current changes:
npx stylelint "**/*.css" --custom-formatter=stylelint-formatter-diffCheck changes relative to the main branch:
export STYLELINT_DIFF_COMMIT=main
npx stylelint "**/*.css" --custom-formatter=stylelint-formatter-diffCheck changes relative to a specific commit:
export STYLELINT_DIFF_COMMIT=3e76bcf
npx stylelint "**/*.css" --custom-formatter=stylelint-formatter-diffFormat results with a non-default formatter (string):
export STYLELINT_DIFF_FORMATTER=verbose
npx stylelint "**/*.css" --custom-formatter=stylelint-formatter-diff