🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@mastermunj/oxc-config

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mastermunj/oxc-config

Shared oxlint + oxfmt configuration for TypeScript packages

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
122
212.82%
Maintainers
1
Weekly downloads
 
Created
Source

@mastermunj/oxc-config

Shared Oxlint and Oxfmt configuration for TypeScript packages.

What this package provides

  • Shareable oxlint base config
  • Shareable oxfmt base config
  • A simple starting point that teams can customize per package

Install

npm install --save-dev @mastermunj/oxc-config oxlint oxfmt oxlint-tsgolint@latest

Usage

1) Oxlint config

Create .oxlintrc.json in your project root:

{
  "extends": ["./node_modules/@mastermunj/oxc-config/.oxlintrc.json"]
}

2) Customize lint rules on top

Yes, you can both override existing rules and add new rules.

Example:

{
  "extends": ["./node_modules/@mastermunj/oxc-config/.oxlintrc.json"],
  "rules": {
    "typescript/no-explicit-any": "warn",
    "no-console": "error"
  },
  "overrides": [
    {
      "files": ["scripts/**/*.ts"],
      "rules": {
        "eslint/no-console": "off"
      }
    }
  ]
}

3) Oxfmt config

Use the shared formatter config via --config:

oxfmt --check --config ./node_modules/@mastermunj/oxc-config/.oxfmtrc.json .
oxfmt --write --config ./node_modules/@mastermunj/oxc-config/.oxfmtrc.json .

4) Scripts

{
  "scripts": {
    "lint": "oxlint --type-aware .",
    "lint:fix": "npm run lint -- --fix",
    "format": "oxfmt --check --config ./node_modules/@mastermunj/oxc-config/.oxfmtrc.json .",
    "format:fix": "oxfmt --write --config ./node_modules/@mastermunj/oxc-config/.oxfmtrc.json ."
  }
}

5) Customize formatter settings

oxfmt does not currently support deep config inheritance like lint extends in the same way.

Recommended approach:

  • Start from the shared config file
  • Copy into your package as .oxfmtrc.json
  • Adjust only settings you want to change

Package Exports

  • @mastermunj/oxc-config/oxlint
  • @mastermunj/oxc-config/oxfmt

License

MIT

Keywords

config

FAQs

Package last updated on 24 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts