@tala-tools/oxlint
v0.0.1
Published
Shared native-first Oxlint configurations for Tala projects
Downloads
308
Readme
@tala-tools/oxlint
Shared native-first Oxlint configurations for Tala projects.
Installation
pnpm add -D @tala-tools/oxlint oxlintTailwind projects also need the Oxlint-compatible validation plugin:
pnpm add -D eslint-plugin-better-tailwindcss tailwindcssUsage
Create oxlint.config.ts in the consuming project:
import { defineConfig } from 'oxlint'
import { base, next, tailwind } from '@tala-tools/oxlint'
export default defineConfig({
extends: [base, next, tailwind],
})tailwind is the authority for Tailwind class ordering, wrapping, and
correctness rules such as no-unknown-classes. Oxfmt deliberately leaves
Tailwind sorting disabled to prevent conflicting auto-fixes. Project-specific
Tailwind settings, such as the stylesheet entrypoint, belong in the local
configuration.
Type-aware rules
Type-aware rules are opt-in because they require a TypeScript 7 project and
the additional oxlint-tsgolint package:
pnpm add -D oxlint-tsgolintEnable the type-aware engine only in the root config, then compose the preset:
import { base, typeAware } from '@tala-tools/oxlint'
import { defineConfig } from 'oxlint'
export default defineConfig({
extends: [base, typeAware],
options: {
typeAware: true,
},
})