linters
v0.0.5
Published
A tool for checking code
Downloads
97
Readme
linters
lint js、ts、style。
install
use command global
npm install linters -g
linter js
use command in project
npm install linters -D
config in package.json
{
"script": {
"lintjs": "./node_modules/.bin/linters js"
}
}
use by npm
npm run lintjs
lint js
- create .eslintrc.js in root dir, and intall pkg;
- use command in your project
linters js
;
lint ts
- create
tslint.json
in root dir, and intall pkg; - use command in your project
linters ts
;
lint style
- create
.stylelintrc
in root dir, and intall pkg; - use command in your project
linters style
;