UNPKG

@vitalik2060/demo-lint

Version:

15 lines (14 loc) 416 B
pre-commit: parallel: true commands: check-scripts: glob: '*.{js,ts,jsx,tsx,mts,mjs,cjs,cts}' run: npx prettier --write {staged_files} && npx eslint {staged_files} && git add {staged_files} check-json: glob: '*.{json}' run: npx prettier --write {staged_files} && git add {staged_files} commit-msg: parallel: true commands: commitlint: run: npx commitlint --edit {1}