@suin/oxlint
v0.1.1
Published
Strict shared Oxlint and Oxfmt presets for TypeScript projects.
Downloads
16
Readme
@suin/oxlint
Strict shared Oxlint and Oxfmt presets for TypeScript projects.
Installation
bun add -d oxlint oxlint-tsgolint oxfmt @suin/oxlintOxlint
Create oxlint.config.ts for the base preset:
import config from "@suin/oxlint/lint/base";
import { defineConfig } from "oxlint";
export default defineConfig({ extends: [config] });For projects that explicitly target Bun, use the Bun preset instead. It extends the base preset and adds Bun-specific package restrictions:
import config from "@suin/oxlint/lint/bun";
import { defineConfig } from "oxlint";
export default defineConfig({ extends: [config] });Oxfmt
Create oxfmt.config.ts:
import config from "@suin/oxlint/fmt/base";
import { defineConfig } from "oxfmt";
export default defineConfig(config);Plugins
The Oxlint preset uses the bundled JS plugin through this package export:
import plugin from "@suin/oxlint/plugins";Most projects do not need to import the plugin directly. The shared Oxlint config already references it.
License
MIT
