@kaffee/moretta
v1.0.22
Published
A enhance linter util
Downloads
2
Readme
@kaffee/moretta
A enhance linter util
Support
- [x] eslint
- [x] vue-tsc
- [x] tsc
- [x] stylelint
- [ ] prettier
Installation
Install with npm
npm install --dev @kaffee/moretta
Install with yarn
yarn add --dev @kaffee/moretta
Install with pnpm
pnpm add -D @kaffee/moretta
Usage/Examples
Example command
yarn moretta
npx moretta
pnpm moretta
Example Config
{
// package manage: "npm"|"yarn"|"pnpm"
"pm":"pnpm",
// eslint match file
"eslint":"src/**/*.{vue,ts,tsx}",
// multiple path
"eslint":[ { "command": "app/main/src/**/*.{vue,ts}", "base_path": "." }],
"stylelint":["src/**/*.{vue,scss,css}"],
// package script key
// package.json script: {"lint:tsc":"tsc --noEmit"}
"tsc":"lint:tsc",
// package script key
// package.json script: {"lint:vue-tsc":"vue-tsc --noEmit --skipLibCheck --pretty"}
"vue-tsc":"lint:vue-tsc",
// contributor map
"contributor":{
"rikka":"Muromi Rikka"
}
}