Skip to content

New oxlint-config package#342

Open
AleksanderEvensen wants to merge 2 commits intoTanStack:mainfrom
AleksanderEvensen:feat/oxlint
Open

New oxlint-config package#342
AleksanderEvensen wants to merge 2 commits intoTanStack:mainfrom
AleksanderEvensen:feat/oxlint

Conversation

@AleksanderEvensen
Copy link

Motivation:

Recently been using the oxc lint and formatting toolchains on my projects. They are close to supporting most common eslint plugins natively with support for the majority of the eslint js API. I wanted to add oxlint and oxfmt as tooling option in the @tanstack/cli builder tool, and since the eslint option used the tanstack/config eslint package I thought that starting here would be a good stepping stone before adding it as an option in the builder CLI

Info about rule changes

Rules not to be implemented

Rules awaiting implementation

Rules requiring extra TypeScript-native package

TypeScript native (tsgo) is not released yet, so decided to not include these rules as they also require the user to add an extra oxlint-tsgolint

  • @typescript-eslint/no-for-in-array
  • @typescript-eslint/no-unnecessary-type-assertion
  • @typescript-eslint/require-await

🎯 Changes

Adds a new oxlint-config package that can be used just like the eslint-config package.

It's almost a one-to-one copy of the @tanstack/eslint-config package with some rules omitted due to missing implementations.

Usage:

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

export default defineConfig({
  extends: [tanstackConfig],
})

As far as i know does not support the .oxlintrc.json format.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm test:pr.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
    • Doesn't effect existing packages, but i have created a changeset for a release.
  • This change is docs/CI/dev-only (no release).

@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2026

🦋 Changeset detected

Latest commit: 0fd1efb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@tanstack/oxlint-config Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant