@braviadev/oxlint-config
v0.2.2
Published
Personal Oxlint configurations for Olanrewaju Toyyib projects.
Readme
@braviadev/oxlint-config
Personal Oxlint configurations for Olanrewaju Toyyib projects.
This package is synced from eslint-config and aims to enable every supported Oxlint rule that is also enabled in eslint-config.
Installation
npm i -D @braviadev/oxlint-config oxlintCreate an oxlint.config.ts file with the following content:
import { defineConfig } from '@braviadev/oxlint-config'
export default defineConfig({
config: {
// Custom OxLint configuration options
},
custom: {
react: true,
},
})Notes
This package follows eslint-config as the source of truth. When a rule is enabled there, we enable the corresponding Oxlint rule here when Oxlint supports it.
unused-imports is intentionally not included. That plugin requires type information, and Oxlint jsPlugins does not support that currently.
If you are using pnpm, add the following to your .npmrc to hoist ESLint plugin dependencies so the Oxlint can resolve them:
public-hoist-pattern[]=*eslint-plugin*What's Included
This config includes opinionated rules from the following plugins:
Always enabled
oxceslinttypescriptunicornpromisenodejsx-a11yimport/import-sortjsdocstylisticde-morganzodregexpsonarjs
Conditionally enabled
react— auto-detected or viareactoptionnextjs— auto-detected or vianextjsoptionvitest— viavitestoptionplaywright— viaplaywrightoptiontailwindcss— viatailwindcssoption
