Skip to content

React Router

Use React Router v7 (framework mode) support from the main v2 package. This config is the successor to the Remix config, since Remix merged into React Router v7.

bash
pnpm add -D @santi020k/eslint-config-basic

The default install above remains recommended. If you use the manual-dependency lite package, install this framework config package too:

bash
pnpm add -D @santi020k/eslint-config-lite @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
})

Most projects can also rely on auto-detection and use eslintConfig() with no framework 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' instead of remix — the rule coverage carries over.
  • Pair this config with the React config — auto-detection handles this for you.
  • The internal package still exists in the monorepo for modular development and generated API docs.

Did this page help?

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