🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@mastermunj/oxc-config

Package Overview
Dependencies
Maintainers
1
Versions
7
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

Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
392
512.5%
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 with type-aware linting (tsgolint)
  • Shareable oxfmt base config
  • TypeScript-first: fully typed, composable via extends / spread

Install

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

Usage

1) Oxlint config

Create oxlint.config.ts in your project root:

import { defineConfig } from 'oxlint';
import baseConfig from '@mastermunj/oxc-config/oxlint';

export default defineConfig({
  extends: [baseConfig],
});

2) Customize lint rules on top

Pass additional rules or overrides after extends:

import { defineConfig } from 'oxlint';
import baseConfig from '@mastermunj/oxc-config/oxlint';

export default defineConfig({
  extends: [baseConfig],
  rules: {
    'no-console': 'error',
  },
  overrides: [
    {
      files: ['scripts/**/*.ts'],
      rules: {
        'no-console': 'off',
      },
    },
  ],
});

3) Oxfmt config

Create oxfmt.config.ts in your project root:

import { defineConfig } from 'oxfmt';
import baseConfig from '@mastermunj/oxc-config/oxfmt';

export default defineConfig({
  ...baseConfig,
});

4) Customize formatter settings

Spread the base config and override only what you need:

import { defineConfig } from 'oxfmt';
import baseConfig from '@mastermunj/oxc-config/oxfmt';

export default defineConfig({
  ...baseConfig,
  printWidth: 100,
});

5) Scripts

Both tools auto-discover oxlint.config.ts and oxfmt.config.ts in the project root — no --config flag needed.

{
  "scripts": {
    "lint": "oxlint .",
    "lint:fix": "oxlint --fix .",
    "format": "oxfmt --check .",
    "format:fix": "oxfmt --write ."
  }
}

Type-aware linting is enabled automatically via options.typeAware: true in the base config (powered by tsgolint). No --type-aware CLI flag needed.

Package Exports

  • @mastermunj/oxc-config/oxlintoxlint.config.ts
  • @mastermunj/oxc-config/oxfmtoxfmt.config.ts

License

MIT

Keywords

config

FAQs

Package last updated on 23 Jul 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