@minimaltech/eslint-react
v0.3.0
Published
React ESLint configuration
Downloads
1,397
Keywords
Readme
@minimaltech/eslint-react
ESLint (flat config) preset for Minimal Technology React apps — @minimaltech/eslint-common plus the React plugin stack.
What's inside
- Everything from
@minimaltech/eslint-common eslint-plugin-reactflat recommended (JSX runtime friendly:react/react-in-jsx-scopeoff,prop-typesoff)eslint-plugin-react-hooksflat recommended —rules-of-hooksat error,exhaustive-depsat warn, plus the React Compiler rule seteslint-plugin-react-refresh—only-export-componentsat warn (allowConstantExport)react/jsx-boolean-valueenforced
Installation
bun add -d @minimaltech/eslint-react
bun add -d eslint prettier typescriptUsage
Create eslint.config.mjs:
import configs from "@minimaltech/eslint-react";
export default [
...configs,
{
// project-specific overrides
},
];Lint:
eslint --report-unused-disable-directives .React version
The preset assumes React 19. On a different major, override it:
{
settings: { react: { version: "18" } },
}Requirements
Node.js >= 18, ESLint >= 10.
License
MIT © Minimal Technology
