Custom oxlint rules
- TypeScript 99.4%
- Nix 0.6%
|
|
||
|---|---|---|
| .github/workflows | ||
| dist | ||
| src | ||
| .envrc | ||
| .gitignore | ||
| bun.lock | ||
| flake.lock | ||
| flake.nix | ||
| oxfmt.config.ts | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
@jawfish/oxlint-plugin
Custom Oxlint JS plugin for shared TypeScript lint rules.
Use in a project
Install from the private Forgejo repo:
bun add -d git+https://git.jawfish.dev/james/oxlint-plugin.git#main
This adds to package.json:
"@jawfish/oxlint-plugin": "git+https://git.jawfish.dev/james/oxlint-plugin.git#main"
Use the bundled preset:
import { defineConfig } from "oxlint";
import jawfish from "@jawfish/oxlint-plugin/config";
import core from "ultracite/oxlint/core";
export default defineConfig({
extends: [core, jawfish],
ignorePatterns: core.ignorePatterns,
});
Or enable rules manually:
import { defineConfig } from "oxlint";
export default defineConfig({
jsPlugins: ["@jawfish/oxlint-plugin"],
rules: {
"general/no-async-foreach": "error",
},
});
Update consumers
bun update @jawfish/oxlint-plugin
Development
bun install
bun run test
bun run typecheck
bun run build