Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.38 KB

File metadata and controls

63 lines (44 loc) · 1.38 KB

Contributing

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 main branch locally.

  • Update CHANGELOG.md and commit.

  • Run the following (replacing patch with minor or major if you want a different range):

    pnpm version patch
    pnpm publish
    git push --follow-tags

    Running pnpm version major|minor|patch shall:

    • 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 publish shall:

    • Publish to the npm repository

    Running git push --follow-tags shall:

    • Push the commit and tag to GitHub