@dethdkn/ox-config
v1.0.6
Published
⚓ My Opinionated OX Config
Maintainers
Readme
🚀 Setup
Install with your favorite package manager:
- bun :
bun add -D @dethdkn/ox-config - npm :
npm i -D @dethdkn/ox-config - pnpm :
pnpm add -D @dethdkn/ox-config - yarn :
yarn add -D @dethdkn/ox-config
- bun :
Create a
.oxfmtrc.jsonfile in the project root and copy the configuration from github.com/dethdkn/ox-config/.oxfmtrc.json.Create a
.oxlintrc.jsonin the project root:
{
"extends": ["./node_modules/@dethdkn/ox-config/.oxlintrc.json"]
}- Add lint scripts to
package.json:
{
"scripts": {
"fmt": "oxfmt --check",
"fmt:fix": "oxfmt",
"lint": "oxlint --type-aware",
"lint:fix": "oxlint --type-aware --fix"
}
}Install the OXC VS Code extension.
Add the following configuration to
.vscode/settings.json:
{
// Use OXC as the default code formatter in VSCode
"editor.defaultFormatter": "oxc.oxc-vscode",
// Enable experimental features for the OXC formatter (fmt)
"oxc.fmt.experimental": true,
// Automatically format files whenever you save them
"editor.formatOnSave": true,
// Apply OXC auto-fix actions on save (only when explicitly configured)
"editor.codeActionsOnSave": {
"source.fixAll.oxc": "explicit"
},
// Run OXC linter automatically on save
"oxc.lint.run": "onSave"
}📝 License
Copyright © 2025 Gabriel 'DethDKN' Rosa
This project is under MIT license
