Skip to content
Source
Sign inSign up
TanStack/config
Open History to see the last commit

eslint.md

40 lines1.2 KB

Purpose

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.

Setup

package.json

  • Make sure you have ESLint v9+ installed

eslint.config.js

import { tanstackConfig } from '@tanstack/eslint-config'
// OR
import { tanstackConfig } from '@tanstack/config/eslint'

export default [
  ...tanstackConfig,
  {
    // Custom rules go here
  },
]

Plugins

Rules

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.