@kasoa/oxlint-config
v0.0.5
Published
Kasoa's Oxlint configurations
Downloads
433
Readme
@kasoa/oxlint-config
Kasoa's Oxlint config
Installation
Install Oxlint, typed linting support, and the config:
pnpm add -D @kasoa/oxlint-config oxlint oxlint-tsgolintNote: Requires Node.js >=24 and a TypeScript setup.
Usage
Import the desired config in your oxlint.config.ts. Extend it with project-specific overrides as needed.
React Projects
export { react as default } from "@kasoa/oxlint-config/react";Node.js Projects
export { node as default } from "@kasoa/oxlint-config/node";Base Config
export { base as default } from "@kasoa/oxlint-config/base";Custom Overrides
Use defineConfig to add project-specific rules:
import { node } from "@kasoa/oxlint-config/node";
import { defineConfig } from "oxlint";
export default defineConfig({
...node,
rules: {
...node.rules,
"no-console": "warn",
},
});Suggested Scripts
Type-aware linting is expected by default:
{
"scripts": {
"lint": "oxlint --type-aware --fix .",
"format": "oxfmt ."
}
}Configurations
base: Core rules for TypeScript-first code quality.node: Extendsbasewith Node.js, import cycle, and test rules.react: Extendsbasewith React, JSX a11y, import cycle, and test rules.
Author
Emmanuel Chucks
https://github.com/emmanuelchucks
License
MIT
