denolint

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

Deno lint command-line executable for Node.js, version 2.0.14, released monthly. It leverages the Rust-based deno_lint engine via N-API to provide fast linting for both JavaScript and TypeScript, outperforming eslint. Key differentiators include support for eslint-style ignore patterns, configurable directories, eslint-disable comments, and multiple output formats. It is a fork of @node-rs/deno-lint with added flexibility and CLI usability improvements.

error Error: Cannot find module 'denolint'
cause denolint not installed globally or locally
fix
Use npx denolint or install via npm i -g denolint
error Error: config file not found: .denolint.json
cause Missing config file in project root
fix
Create .denolint.json or specify --no-config to skip
error Error: Unsupported rules
cause Rules from ESLint are not available
fix
Use only deno_lint rules; see deno_lint documentation
breaking The --root argument has been renamed to --project
fix Replace --root with -p or --project
breaking The --check-only argument is not supported
fix Use shell workaround to ignore exit code
deprecated Config file .denolint.json is used instead of .eslintrc
fix Create .denolint.json with rules in the format described in README
gotcha denolint requires Node.js >=12
fix Update Node.js to version 12 or later
gotcha denolint does not support all ESLint rules; rules are from deno_lint
fix Check deno_lint rules list for supported rules
npm install denolint
yarn add denolint
pnpm add denolint

Runs denolint with a custom config file on the src/ directory.

npx denolint --config .denolint.json src/