Skip to content
Utilities

Oxfmt

Purpose

This package unifies the shared Oxfmt config used across all TanStack projects.

Installation

To install the package, run the following command:

shell
pnpm add -D @tanstack/oxfmt-config

Setup

package.json

  • Make sure you have Oxfmt v0.72.0+ installed

oxfmt.config.ts

ts
import { tanstackConfig } from '@tanstack/oxfmt-config'
import { defineConfig } from 'oxfmt'

export default defineConfig({
  ...tanstackConfig,
  ignorePatterns: [
    ...tanstackConfig.ignorePatterns,
    // Custom ignore patterns go here
  ],
})