npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

eslint-plugin-no-mistakes

v0.109.123

Published

ESLint and Oxlint rules that keep code static enough for no-mistakes analyzers and coding agents

Readme

eslint-plugin-no-mistakes

ESLint and Oxlint rules that keep TS/JS, React, Next.js, and Playwright code static enough for no-mistakes analyzers. They exist so agents cannot hide callers, fetches, or selectors behind aliases and dynamic values. See why no-mistakes exists.

npm install --save-dev eslint-plugin-no-mistakes

For async-call-disposition to inspect imported callback implementations when the linter does not provide a TypeScript program (including Oxlint's --type-aware mode), also install typescript in your project:

npm install --save-dev typescript

typescript and @typescript-eslint/parser are optional peers, but only typescript is required for the cross-file proof. When the ESLint parser is absent, the proof parses supported syntax with ts.createSourceFile; unsupported syntax stays unproven. This fallback requires TypeScript 5 or later for Bundler module resolution. With older TypeScript or missing or incompatible tooling, calls that rely on this cross-file proof are reported as unproven. Same-file proofs and explicitly configured awaiting-consumer contracts continue to work. When ESLint provides a typed TypeScript program, the rule continues to use that program for its typed proof.

Configure the plugin in a flat config and scope rules with files globs. For example, this checks test files for skipped or exclusive tests while allowing todo:

import noMistakes from "eslint-plugin-no-mistakes";

export default [
  {
    files: ["**/*.test.*", "tests/**"],
    plugins: { "no-mistakes": noMistakes },
    rules: { "no-mistakes/test-no-skips": ["error", { allow: ["todo"] }] },
  },
];

See test-no-skips for the rule's behavior and configuration, and the ESLint rule index for the complete list.

To cap long Vitest timeouts, enable no-mistakes/vitest-timeout-cap in the test and Vitest config files selected by your flat-config globs. It defaults to 5,000 ms for configured test and hook timeouts and 30,000 ms for per-test and hook overrides. Overrides above the default cap require an adjacent // no-mistakes-timeout-reason: <specific reason> comment. See the rule documentation for options and examples.

gh-api-argument-safety is an opt-in rule for structured endpoint fields and explicit API methods. See options and examples.

no-argv-main-guard is an opt-in rule for symlink-sensitive entrypoint comparisons. See options and examples.

no-locale-less-date-format is an opt-in rule requiring explicit locale arguments for formatting methods and configured constructors. Scope it with flat-config files/ignores. See the options and examples.

no-comment-phrases is an opt-in rule for configured phrases in line and block comments. See options and examples.

forbidden-member-chains is an opt-in rule for configured static member-access chains. See options and examples.

playwright-no-swallowed-visibility is an opt-in rule for Playwright state checks whose rejection becomes a boolean literal. See options and examples.

no-object-mutation is deprecated with no replacement. Existing opt-in configurations keep reporting shared object writes and mutating calls. See options and examples.

postgres-no-async-sql-builder is an opt-in rule for async SQL builders that never wait. It suggests removing async only when the visible contract allows a synchronous return, and it never autofixes. See options and examples.

postgres-pool-requires-error-listener is an opt-in rule for node-postgres pools without a same-module idle-client error listener. Compatible module names can be added with extraModules. See options and examples.

require-options-on-imported-call requires a static options object on configured imports, globals with no local binding, and terminal methods with a matching receiver shape. See options and examples.

restricted-api-usage is an opt-in import/export-name and call-name policy. See options and examples.

Opt-in client contracts: no-consecutive-unbatched-reads configures adjacent awaited read batching; require-top-level-registration configures owner-module lifecycle registration. Both support ESLint/Oxlint and have no product defaults.

no-top-level-await is an opt-in rule for asynchronous module evaluation. See options and examples.