Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.14 KB

README.md

File metadata and controls

26 lines (18 loc) · 1.14 KB

Javascript quality guidelines

In order to enforcing SNGULAR style guidelines. We created the following packages to help projects implement linters easily.

You can also configure .editorconfig file to ensure your code editor follow the style guide.

Some of the packages (commitlint & lint-staged) are created to work with husky to make git hook easy. We recommend to follow the manual installation and then add the following hooks to your project:

  • Hook for lint commit messages:
npx husky add .husky/commit-msg 'npx --no -- commitlint --edit "$1"'
  • Hook for lint your files before commit
npx husky add .husky/pre-commit 'npx --no -- lint-staged'