Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

recommended

ambar80MIT0.0.7

Run Prettier/ESLint with recommended configs

lint, style, eslint, prettier, typescript, standard, xo

readme

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

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.0.7 (2021-10-08)

Features

  • add config subpackage (5522ef6)
  • replace find-cache-dir with escalade (384d765)

0.0.4 (2021-10-05)

Bug Fixes

0.0.3 (2021-10-04)

Features

0.0.2 (2021-10-01)

Bug Fixes

0.0.1 (2021-10-01)

Features