@devmoods/oxc
v0.3.0
Published
Shared oxfmt and oxlint configs for Devmoods projects
Readme
@devmoods/oxc
Shared oxfmt and oxlint configs for Devmoods projects.
Install
pnpm add -D @devmoods/oxc oxfmt oxlintSetup
Create an oxfmt.config.ts at the root of your project:
import { oxfmtConfig } from '@devmoods/oxc';
import { defineConfig } from 'oxfmt';
export default defineConfig({ ...oxfmtConfig });Create an oxlint.config.ts:
import { oxlintConfig } from '@devmoods/oxc';
import { defineConfig } from 'oxlint';
export default defineConfig({ ...oxlintConfig });The shared lint config ignores generated api-gen output by default.
CLI usage
oxfmt .
oxlint .package.json scripts
{
"scripts": {
"format": "oxfmt .",
"lint": "oxlint ."
}
}For monorepos, a root script can run once across the whole repository, while package-local scripts can still exist for targeted runs.
