This package unifies the shared ESLint config used across all TanStack projects. It is designed to be framework-agnostic, and does not include any framework-specific plugins.
To install the package, run the following command:
pnpm add -D @tanstack/eslint-config
pnpm add -D @tanstack/eslint-config
import { tanstackConfig } from '@tanstack/eslint-config'
export default [
...tanstackConfig,
{
// Custom rules go here
},
]
import { tanstackConfig } from '@tanstack/eslint-config'
export default [
...tanstackConfig,
{
// Custom rules go here
},
]
You can inspect the enabled rules by running pnpm dlx @eslint/config-inspector, or by browsing the source here. Each rule has a comment explaining why it is included in the shared config.
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.
