recommended
v0.0.7
Published
Run Prettier/ESLint with `recommended` configs
Downloads
42
Maintainers
Readme
recommended
Run Prettier/ESLint with recommended configs.
- Simple, no config (but configurable), if not specified, the default config will be used:
- Prettier is integrated by default
- Support JSX/TypeScript by default
- Automatically exclude files in gitignore
- Automatically add aliases (defined by
paths
in tsconfig and jsconfig)
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