npm.io
2.3.0 • Published 6d ago

@standard-config/oxlint-react

Licence
MIT
Version
2.3.0
Deps
2
Size
37 kB
Vulns
0
Weekly
1.2K

@standard‑config/oxlint‑react

Curated Oxlint config with sensible React defaults.

 

Overview

Supplemental config for @standard-config/oxlint, with React-related rules from Oxlint, ESLint React, and React You Might Not Need An Effect.

Install

npm install --save-dev @standard-config/oxlint-react
pnpm add --save-dev @standard-config/oxlint-react

Usage

If you already use the core config, there’s no need to modify oxlint.config.ts. Installed supplemental config packages are detected and applied automatically.

import { defineConfig } from '@standard-config/oxlint';

// Will automatically include `@standard-config/oxlint-react`
export default defineConfig();

FAQ

Do I need to install ESLint?

This config loads an ESLint plugin via Oxlint’s JS plugins. If you encounter any ESLint-related errors, you may need to install eslint in your project.

And if you only want to suppress missing peer dependency warnings, you can configure pnpm not to flag eslint:

peerDependencyRules:
  ignoreMissing:
    - eslint

Additional questions can be found here.

License

MIT Dom Porada

Keywords