Registry / testing / lint
library1.2.2jsnpmunverified

Lint is a universal linter (v1.2.2) that wraps ESLint, Prettier, RuboCop, Biome, Ruff, and Oxlint into a single CLI with AI-powered code review. It supports all major languages and integrates with git hooks for pre-commit checks. The tool uses OpenAI/Anthropic APIs for intelligent fix suggestions and merges configuration from multiple tools. Released monthly, it differentiates by unifying disparate linters and offering AI-driven remediation.

npm install lint
INSTALL
IMPORT
SIG · LINT
L
lint
testingjavascriptv1.2.2
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.

lint
import { lint } from 'lint'
const lint = require('lint')
ESM-only since v1. Use dynamic import() for CommonJS.
lintFiles
import { lintFiles } from 'lint'
import { lintFiles } from 'lint/files'
Named export, not a subpath.
format
import { format } from 'lint'
import format from 'lint'
Named export, not default.

Lint a glob of files with ESLint and Prettier, auto-fix issues, and output summary using AI-powered suggestions.

import { lint } from 'lint'; const result = await lint({ files: ['src/**/*.{js,ts,jsx,tsx}'], aiKey: process.env.OPENAI_API_KEY ?? '', tools: ['eslint', 'prettier'], fix: true }); console.log(result.summary);
lint --version
Debug
Known issues
breakingv1.0.0 removed support for Node 18. Minimum Node version is now 20.
fix
Upgrade Node to >=20.
affects: >=1.0.0
breakingThe 'linters' option was renamed to 'tools' in v1.2.0.
fix
Use 'tools' instead of 'linters'.
affects: >=1.2.0
deprecatedrequire('lint') is deprecated. Use ESM import instead.
fix
Replace require with import.
affects: >=1.0.0
gotchaWhen using AI features, OpenAI API key must be set via environment variable or passed in options. Without key, AI fix suggestions are disabled.
fix
Set OPENAI_API_KEY or pass aiKey in options.
affects: >=1.0.0
gotchaThe 'fix' option only applies to ESLint and Prettier; other tools may require separate fix flags.
fix
Check tool-specific documentation for fix behavior.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'lint'
Package not installed or ESM-only module required with require().
fix
npm install lint && use import instead of require.
TypeError: lint is not a function
Default import used instead of named import.
fix
Import { lint } from 'lint' instead of import lint from 'lint'.
ERROR: 'linters' is not a valid option. Did you mean 'tools'?
Using deprecated option name 'linters'.
fix
Replace 'linters' with 'tools'.
Upgrade
Version history
1.2.2latest on npm
Audit
Dependencies
noderequiredrequires Node >=20
Agent activity
14 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources