Git Product home page Git Product logo

checker's Introduction

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

checker's People

Contributors

jl917 avatar semantic-release-bot avatar

Stargazers

 avatar

Watchers

 avatar

checker's Issues

메모

tsc

test

[ ] default
[ ] coverage
[ ] onlyChange

es

[ ] default
[ ] fix

style

[ ] default
[ ] fix

[ ] stylus
[ ] less
[ ] scss, sass

commit

md

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.