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.

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'
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
npm install create-lint-config
yarn add create-lint-config
pnpm add create-lint-config

Scaffolds lint configs for a React+TypeScript project using the default preset.

npx create-lint-config@latest --template react-ts