amber-lint
raw JSON → 1.0.3 verified Fri May 01 auth: no javascript
A tool to configure and generate configuration files for ESLint, Prettier, Stylelint, Commitlint, Husky, etc., unifying project code style. Version 1.0.3 is the latest. Released with low frequency. Differentiators: auto-generates all config files and installs peer dependencies via a single command, supporting JavaScript and TypeScript projects.
Common errors
error Error: Cannot find module 'amber-lint' ↓
cause Missing local installation; running npx amber-lint without installing first.
fix
Run 'npm install amber-lint' in your project, then use 'npx amber-lint'.
error bash: amber-lint: command not found ↓
cause Global install not performed or not in PATH.
fix
Install globally: 'npm install -g amber-lint', or use npx: 'npx amber-lint'.
Warnings
gotcha Generated aelftsconfig.json must be merged with existing tsconfig.json; renaming overwrites user config. ↓
fix Manually copy contents of aelftsconfig.json to tsconfig.json, preserving your own settings.
breaking This tool replaces existing configuration files without backup. ↓
fix Commit existing config files to version control before running amber-lint.
deprecated Node.js versions <10.12.0 or 11.x are not supported. ↓
fix Upgrade Node.js to >=10.12.0 (but not 11.x) or >=12.0.0.
Install
npm install amber-lint yarn add amber-lint pnpm add amber-lint Imports
- amber-lint wrong
const amberLint = require('amber-lint')correctnpx amber-lint
Quickstart
npm install -g amber-lint && cd my-project && amber-lint