0.0.7 • Published 3 years ago

recommended v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

recommended

Coverage Status npm version

Run Prettier/ESLint with recommended configs.

Install

# JavaScript only
npm install --save-dev recommended
# JavaScript and TypeScript
npm install --save-dev recommended typescript

CLI

Usage: recommended [options] [files]

Options:
  --fix		automatically fix problems
  --cache	try to use disk cache to speed up - default: true
  --init	setup editor config files
  -h, --help	output usage information

Examples:
  # lint all files in the current project
  recommended
  # lint specified files
  recommended src/index.ts
{
  "scripts": {
    "lint": "recommended",
    "lint:fix": "recommended --fix"
  }
}

Editor Integration

Set up the config (.rc or VSCode) files by init command:

recommended --init