Skip to content

dethdkn/ox-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@dethdkn/ox-config

⚓️ My Opinionated OX Config

rosa.dev.br License Gitmoji

🚀 Setup

  1. 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
  2. Create a .oxfmtrc.json file in the project root and copy the configuration from github.com/dethdkn/ox-config/.oxfmtrc.json.

  3. Create a .oxlintrc.json in the project root:

{
  "extends": ["./node_modules/@dethdkn/ox-config/.oxlintrc.json"]
}
  1. Add lint scripts to package.json:
{
  "scripts": {
    "fmt": "oxfmt --check",
    "fmt:fix": "oxfmt",
    "lint": "oxlint --type-aware",
    "lint:fix": "oxlint --type-aware --fix"
  }
}
  1. Install the OXC VS Code extension.

  2. Add the following configuration to .vscode/settings.json:

{
  // Use OXC as the default code formatter in VSCode
  "editor.defaultFormatter": "oxc.oxc-vscode",

  // 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"
  },

  // Enable type-aware linting
  "oxc.typeAware": true,

  // Run OXC linter automatically on type
  "oxc.lint.run": "onType"
}

📝 License

Copyright © 2026 Gabriel 'DethDKN' Rosa
This project is under MIT license

About

⚓ My Opinionated OX Config

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors