@julong/checker

1.0.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @julong/checker

Weekly Downloads

2

Version

1.0.5

License

MIT

Unpacked Size

149 kB

Total Files

15

Last publish

Collaborators

  • julong