📄 tanstack/config/latest/docs/eslint

File: eslint.md | Updated: 11/15/2025

Source: https://tanstack.com/config/latest/docs/eslint



TanStack

Config v0v0

Search...

+ K

Auto

Log In

TanStack StartRC

Docs Examples GitHub Contributors

TanStack Router

Docs Examples GitHub Contributors

TanStack Query

Docs Examples GitHub Contributors

TanStack Table

Docs Examples Github Contributors

TanStack Formnew

Docs Examples Github Contributors

TanStack DBbeta

Docs Github Contributors

TanStack Virtual

Docs Examples Github Contributors

TanStack Paceralpha

Docs Examples Github Contributors

TanStack Storealpha

Docs Examples Github Contributors

TanStack Devtoolsalpha

Docs Github Contributors

More Libraries

Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide

Documentation

Version

Latest

Search...

+ K

Menu

Getting Started

Utilities

Conventions

Version

Latest

Menu

Getting Started

Utilities

Conventions

On this page

ESLint

Copy Markdown

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

js

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

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


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.

Edit on GitHub

Overview

Publish

Partners Become a Partner

Code RabbitCode Rabbit CloudflareCloudflare AG GridAG Grid NetlifyNetlify NeonNeon WorkOSWorkOS ClerkClerk ConvexConvex ElectricElectric SentrySentry PrismaPrisma StrapiStrapi UnkeyUnkey