Below you'll find tooling for code and commit hygiene related to Alicenet projects.
Here's the command to install all required packages. You will be prompted to answer some questions to configure ESLint to the purpose of your project.
npm i prettier --save-dev --exact && npm i @commitlint/cli @commitlint/config-conventional @commitlint/format lint-staged --save-dev && npx husky-init && npm init @eslint/config
- Prettier (https://prettier.io/)
- Husky (https://typicode.github.io/husky)
- ESLint (https://eslint.org/docs/latest/)
- lint-staged (https://github.com/okonet/lint-staged)
- commitLint (https://commitlint.js.org/#/)
See the .prettierrc
file for details.
See the .husky
directory for details
This script checks commit messages using (commitLint)[https://commitlint.js.org/#/] to check against formatting found (here)[https://github.com/conventional-changelog/commitlint/#what-is-commitlint]
This script runs lint-staged
commands found in .lintstagedrc.json
file. Currently runs:
- Prettier
- ESLint
Linter is used by husky to check files before committing.
Used to run commands when committing. See Husky section for details.
Used to check commit messages against formatting found (here)[https://github.com/conventional-changelog/commitlint/#what-is-commitlint].