A enhance linter util
- eslint
- vue-tsc
- tsc
- stylelint
- prettier
Install with npm
npm install --dev @kaffee/moretta
Install with yarn
yarn add --dev @kaffee/moretta
Install with pnpm
pnpm add -D @kaffee/moretta
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"
}
}