Skip to content

React Router

Use React Router v7 framework-mode support from the lean v3 composer. This is also the supported configuration for projects migrated from Remix.

bash
pnpm add -D @santi020k/eslint-config-basic @santi020k/eslint-config-react @santi020k/eslint-config-react-router eslint
import { defineConfig } from '@santi020k/eslint-config-basic'
export default await defineConfig({
frameworks: {
react: true,
'react-router': true
},
typescript: true
})

With the required config packages installed, the one-line recommended entry auto-detects the framework; custom configs can use defineConfig() without a frameworks object.

  • Recommended accessibility rules from eslint-plugin-jsx-a11y for route components.
  • Adjustments that prevent false positives in virtual script blocks generated by the framework.
  • Composition through the same @santi020k/eslint-config-basic entry point as every other framework.
  • Compatibility with advanced overrides if you pass a custom config array or factory instead of true.
  • Migrating from Remix? Enable 'react-router'; Remix dependencies are auto-detected as React Router projects.
  • Pair this config with the React config — auto-detection handles this for you.
  • This framework package is a public, optional dependency in v3; the basic composer loads it only when enabled.

Did this page help?

One click helps us spot documentation that needs another pass. No personal data is sent.