Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 1.21 KB

README.md

File metadata and controls

74 lines (56 loc) · 1.21 KB

@kaffee/moretta

A enhance linter util

Support

  • eslint
  • vue-tsc
  • tsc
  • 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"
  }
}

License

GPL

Contributors