Configless lint tool that bundles eslint, tslint, stylelint, prettier, lint-staged, and husky into a single zero-config command-line interface. Version 2.0.2 is the latest stable release, with an active maintenance status. It simplifies code quality and formatting by reducing the number of dependencies and configuration files needed for a typical linting setup. Key differentiator: provides a unified CLI that supports linting entire directories, only staged files (via --staged), and integrates multiple linters and formatters with a single command.
npm install umi-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to configure umi-lint scripts in package.json for both full source linting and precommit staged file checks with auto-fix.
Create configuration files in project root as documented by each linter.
Use umi-lint --eslint --eslint.ext='.ts,.tsx' or pass options via dot notation: --eslint.ext='.ts,.tsx'.
Run 'git add' to stage files before executing umi-lint --staged.
Use --eslint instead of --tslint and configure eslint with @typescript-eslint/parser.
Ensure sub-parameters are passed with dots: --eslint.debug, -s.formatter=json, -p.no-semi.
Create .eslintrc file (e.g., .eslintrc.json) with basic configuration.
Run npm install umi-lint --save-dev or use npx umi-lint.
Initialize git with 'git init' or run the command inside a git repository.
Use --eslint.ext '.ts,.tsx' or --eslint.ext=.ts,.tsx (no space before value) but prefer dot notation: --eslint.ext='.ts,.tsx'.