@macklinu/oxlint-config
v0.1.0
Published
My personal Oxlint configuration
Readme
@macklinu/oxlint-config
My personal Oxlint configuration
Installation
pnpm add -D @macklinu/oxlint-config oxlintInstall oxlint-tsgolint only in projects that use the type-aware config:
pnpm add -D oxlint-tsgolintUsage
TypeScript Oxlint config files require a Node version that can execute TypeScript directly. Use Node 24 or Node >=22.18.0.
Create an oxlint.config.ts file in the root of your project:
import { defineConfig } from 'oxlint'
import { base } from '@macklinu/oxlint-config'
export default defineConfig({
extends: [base],
})Compose variants for React, Vitest, Node, or type-aware linting:
import { defineConfig } from 'oxlint'
import { base, react, typeAware, vitest } from '@macklinu/oxlint-config'
export default defineConfig({
extends: [base, react, vitest, typeAware],
})The Vitest config intentionally does not enable Vitest globals. Import test APIs explicitly:
import { expect, test, vi } from 'vitest'