create-lint-config
raw JSON → 0.4.2 verified Fri May 01 auth: no javascript
A CLI scaffolding tool to generate lint configurations (ESLint, Prettier, StyleLint, CommitLint, Husky, lint-staged) for frontend projects. v0.4.2 supports Vue, React, Node templates with interactive prompts. Differentiators: opinionated defaults, one-command setup, template system, step-by-step customization via --input flag, and auto-dependency installation. Releases are monthly; actively maintained.
Common errors
error Cannot read properties of undefined (reading 'config') ↓
cause Node.js version below 14.18.0
fix
Upgrade Node.js to ^14.18.0 || >=16.0.0
error Unknown flag: --template vue (did you mean --template?) ↓
cause Missing extra double-dash on npm 7+
fix
Use 'npm create lint-config@latest -- --template vue'
Warnings
gotcha The --template flag requires npm 7+ to pass extra double-dash: npm create lint-config@latest -- --template vue ↓
fix Use 'npm create lint-config@latest -- --template <name>' for npm 7+
breaking v0.4.2 renames commitlintrc to .commitlintrc.cjs – existing projects may break if they rely on the old .js extension ↓
fix Rename your .commitlintrc.js to .commitlintrc.cjs
gotcha Interactive mode (-i) fails if stdin is not a TTY (e.g., in CI pipelines) ↓
fix Always pass --template or provide non-interactive flags in CI
Install
npm install create-lint-config yarn add create-lint-config pnpm add create-lint-config Imports
- create-lint-config
npx create-lint-config@latest
Quickstart
npx create-lint-config@latest --template react-ts