Thank you for wanting to contribute. This parser is essential to stylelint's built-in support of CSS-in-JS.
We want to encourage contributions! If you want to participate but couldn't, please give us feedback about what we could do better.
To start coding, you'll need:
Then:
- Fork and clone this repository.
- Install all the dependencies with
npm ci
.
Next, you'll want to run the tests using npm test
.
However, this runs the test just once.
You can use npm run watch
instead. It will run the tests when you change a file.
Additionally, you can run linting checks with npm run lint
.
We use Prettier (with a Husky and lint-staged precommit) to format your code automatically.
Alternatively, you can:
- trigger the pretty-printing all the files using
npm run format
- use a Prettier editor integration
When you have something to share, it's time to open a pull request.
After we review and merge your pull request, we'll invite you to become a maintainer of the stylelint organization. You'll then be able to work on the repository directly rather than your fork.