@mrskiro/oxlint-config
v0.6.1
Published
Shared oxlint configuration
Readme
@mrskiro/oxlint-config
Shared oxlint configuration for my projects.
Install
pnpm add -D oxlint @mrskiro/oxlint-configUsage
Configs are composable. Pick what you need:
| Export | Plugins |
|--------|---------|
| @mrskiro/oxlint-config/base | typescript, unicorn, oxc, import |
| @mrskiro/oxlint-config/react | + react, jsx-a11y |
| @mrskiro/oxlint-config/next | + nextjs, react-perf |
| @mrskiro/oxlint-config/vitest | vitest |
react extends base, next extends react. vitest is standalone.
Example: Next.js + Vitest
// oxlint.config.ts
import next from "@mrskiro/oxlint-config/next";
import vitest from "@mrskiro/oxlint-config/vitest";
import { defineConfig } from "oxlint";
export default defineConfig({
...next,
plugins: [...next.plugins, ...vitest.plugins],
rules: {
...next.rules,
...vitest.rules,
},
});Example: React only
// oxlint.config.ts
import react from "@mrskiro/oxlint-config/react";
import { defineConfig } from "oxlint";
export default defineConfig(react);Release
- Update
versioninpackage.json - Commit, tag, and push:
git add package.json && git commit -m "vX.Y.Z" && git tag vX.Y.Z && git push origin main --tagsGitHub Actions will automatically publish to npm.
License
MIT
