Skip to content

cutie6/check-keywords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check-keywords

A tool to check keywords in code to be committed.

Install

npm install --save-dev check-keywords

Init

To generate default configuration file check-keywords.config.js

npx check-keywords init 

Then you can customize your configurations in check-keywords.config.js

Lint

Work with lint-stage(Recommended)

 "lint-staged": {
    "*.ts|*.tsx": [
      "npx tsc-files --noEmit",
      "eslint --max-warnings 0 --fix",
      "check-keywords"
    ]
  }

Use it alone

npx check-keywords src/xxx.js src/xxx.ts

Use custom configuration file

npx check-keywords -p your.config.js src/xxx.js src/xxx.ts

About

A tool to check keywords in code to be committed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published