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

@inflexa-ai/oxlint-plugin-react

v0.6.1

Published

The oxlint rules and configuration of Inflexa for React applications, and the typed rules of React for inflexa-typecheck.

Readme

@inflexa-ai/oxlint-plugin-react

The oxlint rules and the shared oxlint configuration for React applications, and the typed rules of React for inflexa-typecheck. The package includes @inflexa-ai/oxlint-plugin, and it installs the plugins of TanStack Query, TanStack Router, Testing Library and Playwright.

Install

npm install --save-dev @inflexa-ai/oxlint-plugin-react oxlint oxlint-tsgolint

Pin oxlint and oxlint-tsgolint to exact versions, because JS plugins and type-aware rules are not under semver.

The plugins of React Doctor and Tailwind, and @inflexa-ai/typecheck are optional peers:

  • For the reactDoctor option, install eslint-plugin-react-doctor.
  • For the tailwind option, install eslint-plugin-better-tailwindcss.
  • For the typed rules of the ./typecheck entry, install @inflexa-ai/typecheck.

Hold the two TypeScript aliases in the devDependencies of the repository:

{
  "devDependencies": {
    "@typescript/native": "npm:[email protected]",
    "typescript": "npm:@typescript/typescript6@^6.0.2"
  }
}

@tanstack/eslint-plugin-query, and eslint-plugin-solid in the Solid package, sit on @typescript-eslint/utils 8.71.0. Its peer range for typescript is >=4.8.4 <6.1.0, so on TypeScript 7 the peer finds no match and npm ls --all exits 1. typescript-eslint widens the range when TypeScript 7 ships the API that it waits for; the request is typescript-eslint/typescript-eslint#10940. The two lines above hold TypeScript 7 beside it: @typescript/native serves tsc and inflexa-typecheck, the name typescript holds TypeScript 6 for the editors and for the peer of @typescript-eslint/utils, and npm ls --all exits 0. A repository that installs typescript 7 flat keeps the invalid peer; the two lines are the repair.

Use

Call the factory in oxlint.config.ts, and apply the presets to the folders of the repository:

import { react, tanstack, testingLibrary } from '@inflexa-ai/oxlint-plugin-react'

export default react({
  overrides: [
    { files: ['src/**'], ...tanstack },
    { files: ['**/*.test.tsx'], ...testingLibrary },
  ],
})

oxlint gives a JS plugin no type information. Thus the command inflexa-typecheck of @inflexa-ai/typecheck runs the rules that read types. The ./typecheck entry exports the plugin of the typed rules of React, no-inline-query-key and no-void-query-fn, under the name @inflexa-ai/react. Give it to typecheck() in typecheck.config.ts:

import { plugin as react } from '@inflexa-ai/oxlint-plugin-react/typecheck'
import { typecheck } from '@inflexa-ai/typecheck'

export default typecheck({
  plugins: [react],
  overrides: [{ files: ['src/**'], rules: { '@inflexa-ai/react/no-inline-query-key': 'error', '@inflexa-ai/react/no-void-query-fn': 'error' } }],
})

Run the three tools in this sequence:

oxlint && inflexa-typecheck && directive-guard

directive-guard comes with @inflexa-ai/oxlint-plugin. It reports each disable directive that switches off a rule of @inflexa-ai/ with no entry in the lint configuration.

Documentation

License

Apache-2.0. The rule no-void-query-fn is a port of a rule of @tanstack/eslint-plugin-query, which has the MIT license. Refer to NOTICE.