@evanpurkhiser/oxc-config
v0.14.0
Published
Evan Purkhiser's personal Oxc configuration
Readme
Evan Purkhiser's Personal Oxc config
These are my Oxc linting and formatting configurations that I use across my various personal projects.
npm install -D oxlint oxfmt @evanpurkhiser/oxc-configCreate an oxlint.config.ts file with the contents:
import {defineConfig} from 'oxlint';
import {all} from '@evanpurkhiser/oxc-config/oxlint';
export default defineConfig({
extends: all,
});The default configuration is for React apps, but you can select from the following configurations:
common- ES6 and Typescript rulesreact- React specific rules
For example:
import {defineConfig} from 'oxlint';
import {common} from '@evanpurkhiser/oxc-config/oxlint';
export default defineConfig({
extends: [common],
});For Oxfmt, create an oxfmt.config.ts file:
import {defineConfig} from 'oxfmt';
import {oxfmt} from '@evanpurkhiser/oxc-config/oxfmt';
export default defineConfig(oxfmt);This package exposes two primary modules:
@evanpurkhiser/oxc-config/oxlint@evanpurkhiser/oxc-config/oxfmt
