Registry / testing / complete-lint

complete-lint

JSON →
library5.11.0jsnpmunverified

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.

npm install complete-lint
INSTALL
IMPORT
SIG · COMPLETE-LINT
C
complete-lint
testingjavascriptv5.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

complete-lint
import 'complete-lint'
const lint = require('complete-lint')
complete-lint is a meta-package; importing it applies the configuration. ESM-only since v5.
config
import config from 'complete-lint/config'
const config = require('complete-lint/config')
Import the default config object for custom setups. Requires ESM.
CLI
import { CLI } from 'complete-lint'
import CLI from 'complete-lint'
Named export for CLI tool; not a default export.

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']);
Debug
Known issues
breakingcomplete-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.
affects: >=5.0.0
deprecatedcomplete-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.
affects: >=4.0.0
gotchaComplete-lint does not include prettier or eslint as direct deps; they must be installed separately.
fix
Install eslint and prettier in your project.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'complete-lint'
Package not installed or not in node_modules.
fix
Run npm install complete-lint
TypeError: config is not a function
Using deprecated config pattern from v3.
fix
Use import config from 'complete-lint/config' instead of calling config().
Error: Cannot use import statement outside a module
Missing type: module in package.json or file extension not .mjs.
fix
Set type: module in package.json or rename file to .mjs.
Upgrade
Version history
5.11.0latest on npm
Audit
Dependencies
typescriptrequiredPeer dependency; the package requires TypeScript >=6.0.0 to function.
Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
complete-lint — npm install complete-lint · libregistry