Registry / testing / do-lint

do-lint

JSON →
library1.0.2jsnpmunverified

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.

npm install do-lint
INSTALL
IMPORT
SIG · DO-LINT
D
do-lint
testingjavascriptv1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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
do-lint --version
Debug
Known issues
breakingVersion 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.
affects: <1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'do-lint'
do-lint not installed globally or locally.
fix
Run 'npm install -g do-lint' to install globally.
Command 'do-lint init' not found
Global installation not in PATH or not installed.
fix
Ensure npm global bin is in PATH or use npx do-lint init.
Upgrade
Version history
1.0.2latest on npm
Audit
Dependencies
eslintrequiredInstalled globally or locally for linting JavaScript/TypeScript code.
prettierrequiredCode formatting tool required by configuration.
lint-stagedrequiredUsed to run linters on staged Git files before commits.
huskyrequiredManages Git hooks to trigger linting on commit.
Agent activity
10 hits · last 30 days
node
10
Resources
do-lint — npm install do-lint · libregistry