Complete Lint

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

complete-lint is a meta-package that bundles and configures ESLint and Prettier for TypeScript projects, providing a zero-config linting setup. Current stable version is 5.11.0, with active development and frequent releases. It simplifies TypeScript linting by handling dependencies and defaults, but requires typescript >=6.0.0. Unlike alternatives like eslint-config-prettier, complete-lint is a full meta-package that installs multiple tools and provides a unified configuration.

error Error: Cannot find module 'complete-lint'
cause Package not installed or not in node_modules.
fix
Run npm install complete-lint
error TypeError: config is not a function
cause Using deprecated config pattern from v3.
fix
Use import config from 'complete-lint/config' instead of calling config().
error Error: Cannot use import statement outside a module
cause Missing type: module in package.json or file extension not .mjs.
fix
Set type: module in package.json or rename file to .mjs.
breaking complete-lint v5.0.0 drops support for TypeScript <6.0.0. Update typescript peer dep.
fix Upgrade TypeScript to version 6.0.0 or higher.
deprecated complete-lint v4.0.0 deprecated the `config` helper function. Use `import config from 'complete-lint/config'` instead.
fix Use the new import path for config.
gotcha Complete-lint does not include prettier or eslint as direct deps; they must be installed separately.
fix Install eslint and prettier in your project.
npm install complete-lint
yarn add complete-lint
pnpm add complete-lint

Shows how to use complete-lint: import to apply config, or use CLI programmatically.

import 'complete-lint';
// Then run linting commands (e.g., eslint .)
// Or use the provided CLI:
import { CLI } from 'complete-lint';
new CLI().run(['--fix']);