0.0.5 • Published 6 years ago
linters v0.0.5
linters
lint js、ts、style。
install
use command global
npm install linters -g
linter jsuse command in project
npm install linters -Dconfig in package.json
{
"script": {
"lintjs": "./node_modules/.bin/linters js"
}
}use by npm
npm run lintjslint js
- create .eslintrc.js in root dir, and intall pkg;
- use command in your project
linters js;
lint ts
- create
tslint.jsonin root dir, and intall pkg; - use command in your project
linters ts;
lint style
- create
.stylelintrcin root dir, and intall pkg; - use command in your project
linters style;