asdf install
corepack enable
asdf reshim
yarn
yarn build && node ./dist/cli.js -c example/.prismalintrc.json example/valid.prisma
A few options:
- To run all unit tests use
yarn test
. - To run a specific unit test use
yarn test <test>
. - To run a local version against example test cases, see example/README.md. Feel free to add or edit examples.
- To use a local version of
prisma-lint
within a different repository, update the other repository'spackage.json
dependency as shown below, then runyarn
andyarn prisma-lint
within the other repository.
"prisma-lint": "portal:/Users/max/loop/prisma-lint",
To prepare a pull request for review:
- Generate rules documentation (
RULES.md
) by runningyarn docs
. - Add an entry to the "Unreleased" section in
CHANGELOG.md
. Omit this step if there is no user-facing change. - Create a pull request.
To release a new version:
- Check out a new branch.
- Run
yarn bump-version
. - Create a pull request and merge it.
- The
release.yml
GitHub Action will publish to NPM.