This package unifies the shared Oxlint 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/oxlint-configMake sure you have Oxlint v1.87+ installed
oxlint-tsgolint is required, as the config enables type-aware linting
import { tanstackConfig } from '@tanstack/oxlint-config'
import { defineConfig } from 'oxlint'
export default defineConfig({
extends: [tanstackConfig],
// Not inherited through `extends`
env: tanstackConfig.env,
ignorePatterns: tanstackConfig.ignorePatterns,
rules: {
// Custom rules go here
},
})You can inspect the enabled rules by browsing the source here. Each rule has a comment explaining why it is included in the shared config.