Skip to content

jl917/checker

Repository files navigation

title

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

Table of Contents

Installation

# local
npm install --save-dev @julong/checker
# global
npm install -g @julong/checker

Usage

step1. setting git hook

npm install husky
npx husky add .husky/commit-msg 'npx jcheck commitlint'
npx husky add .husky/pre-commit 'npx jcheck default'

step2. jcheck.config.js(Can be omitted)

// jcheck.config.js
module.exports = {
  tsc: true,
  test: true,
  eslint: true,
  stylelint: true,
  markdownlint: true,
  htmlhint: true,
};

CLI Command

$ npx jcheck default
  • default
  • all
  • fix
  • tsc
  • test
  • testCoverage
  • testOnlyChange
  • eslint
  • eslintFix
  • stylelint
  • stylelintFix
  • htmlhint
  • markdownlint
  • markdownlintFix
  • commitlint

Maintainers

JuLong - jl917

Contributing

Anyone is welcome to participate in the maintenance and development of this project, and can also submit Issues and PR's

License

MIT

About

No description or website provided.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •