This is a tool for code inspection, testing, and message submission.
Support the following files
- .jsx,.js,.ts,.tsx,.mjs,.cjs
- .css,.stylus,.styl,.scss,.sass
- .md
- .html
# local
npm install --save-dev @julong/checker
# global
npm install -g @julong/checker
npm install husky
npx husky add .husky/commit-msg 'npx jcheck commitlint'
npx husky add .husky/pre-commit 'npx jcheck default'
// jcheck.config.js
module.exports = {
tsc: true,
test: true,
eslint: true,
stylelint: true,
markdownlint: true,
htmlhint: true,
};
$ npx jcheck default
- default
- all
- fix
- tsc
- test
- testCoverage
- testOnlyChange
- eslint
- eslintFix
- stylelint
- stylelintFix
- htmlhint
- markdownlint
- markdownlintFix
- commitlint
JuLong - jl917
Anyone is welcome to participate in the maintenance and development of this project, and can also submit Issues and PR's