Package Exports
- recommended
- recommended/config/eslint
- recommended/config/prettier
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (recommended) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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
pathsin tsconfig and jsconfig)
Install
# JavaScript only
npm install --save-dev recommended
# JavaScript and TypeScript
npm install --save-dev recommended typescriptCLI
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