do-lint

raw JSON →
1.0.2 verified Fri May 01 auth: no javascript

do-lint is a CLI tool that quickly initializes code quality tools for frontend projects, supporting Vue, React, and Angular with TypeScript or JavaScript. Version 1.0.2 ships TypeScript types and requires Node >=16. It is actively maintained with monthly updates. It configures ESLint, Prettier, Husky, and lint-staged in one command, reducing manual setup effort. Key differentiators include interactive and CLI modes, support for multiple frameworks, and automatic Git hooks integration.

error Error: Cannot find module 'do-lint'
cause do-lint not installed globally or locally.
fix
Run 'npm install -g do-lint' to install globally.
error Command 'do-lint init' not found
cause Global installation not in PATH or not installed.
fix
Ensure npm global bin is in PATH or use npx do-lint init.
breaking Version 1.0.0 introduced breaking changes: replaced default template system with explicit '-t' flag. Old 'do-lint init' without flag no longer prompts for framework selection from a list but prompts interactively instead.
fix Use 'do-lint init' interactively or specify '-t' flag with the desired template (e.g., -t react-ts) starting from v1.0.0.
npm install do-lint
yarn add do-lint
pnpm add do-lint

Installs do-lint globally and initializes a React + TypeScript project with ESLint, Prettier, Husky, and lint-staged configuration.

npm install -g do-lint
do-lint init -t react-ts