Contributing
December 28, 2025 ยท View on GitHub
Thanks for contributing!
Installation
git clone https://github.com/prettier/stylelint-prettier.git
cd stylelint-prettier
pnpm install
Running the tests and linters
Run tests:
pnpm run test
Run linters:
pnpm run lint
This is a Stylelint plugin. Documentation for the APIs that it uses can be found on Stylelint's Writing Plugins page.
End to end tests
e2e test fixtures are in test/fixtures.
Running the e2e tests while trying to debug a problem can be annoying. To check stylelint's output of a single fixture, run stylelint from within the fixtures directory:
cd test/fixtures
../../node_modules/.bin/stylelint 'check*'
Publishing
-
Ensure you are on the
mainbranch locally. -
Update
CHANGELOG.mdand commit. -
Run the following (replacing patch with minor or major if you want a different range):
pnpm version patch pnpm publish git push --follow-tagsRunning
pnpm version major|minor|patchshall:- Bump the version in package.json (depending on semver range you wanted)
- Create a new commit containing that version bump in package.json
- Create a tag for that commit
Running
pnpm publishshall:- Publish to the npm repository
Running
git push --follow-tagsshall:- Push the commit and tag to GitHub