Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@clipboard-health/oxlint-config

Latest version: v6.2.3

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: clipboard_engineering, mikecookcbh, sharedenginner_cbh, user_engineer
66 Stars
9 Forks
73 Versions
79.0K Downloads
TypeScript Repo language

Scan summary

@clipboard-health/oxlint-config was last scanned on 30 Nov 2026 at version 6.2.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 73 versions; the latest 4 were published within 7 days (24–30 Nov 2026).
  • Findings: No rules fired in version 6.2.3.
  • Downloads: 79,048 downloads.

Versions

73 versions published
Versions and the rules that fired in each
VersionPublishedStatus
6.2.3 LATEST 30 Nov 2026 No rules fired
6.2.2 27 Nov 2026 No rules fired
6.2.1 27 Nov 2026 No rules fired
6.2.0 24 Nov 2026 Not shown
6.1.0 23 Nov 2026 Not shown

No rules fired in 6.2.3

Findings

Findings for v6.2.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 6.2.3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@clipboard-health/oxlint-config

Shared Oxlint configuration for Clipboard Health repositories.

Table of contents

  • Install
  • Usage
  • Fast runs
  • Strict presets
  • Suppression policy
  • Lint ceilings
  • Categories
  • What is shared
  • Intentionally disabled rules

Install

npm install @clipboard-health/oxlint-config

The config package includes @clipboard-health/oxlint-plugin for presets that use Clipboard Health custom rules.

Repositories using the frontend preset must also install oxlint-plugin-react-doctor >= 0.9.12.

Repositories using the typeAware preset must also install tsrs >= 0.21.0-ts7.1.0-beta, which provides the tsrs-lint backend for oxlint --type-aware.

Requires oxlint >= 1.92.0: older oxlint versions cannot find the tsrs-lint backend, and the config references rules they do not register, which fails config parsing outright.

Usage

Use the package's TypeScript helper when a repo needs additive composition. Oxlint's built-in extends is useful for simple inheritance, but it does not let a repo safely append shared plugins, overrides, and similar array fields without re-specifying the shared values.

TypeScript config

Create an oxlint.config.ts in your repo root:

import {
  base,
  createOxlintConfig,
  customRules,
  typeAware,
  vitest,
} from "@clipboard-health/oxlint-config";
import { defineConfig } from "oxlint";

export default defineConfig(
  createOxlintConfig({
    localConfig: {
      categories: {
        correctness: "error",
        nursery: "off",
        pedantic: "error",
        perf: "error",
        restriction: "error",
        style: "off",
        suspicious: "error",
      },
      ignorePatterns: [".agents", "coverage/", "node_modules/"],
      options: {
        denyWarnings: true,
        typeAware: true,
        typeCheck: true,
      },
      rules: {
        "vitest/require-test-timeout": "off",
      },
      settings: {
        node: {
          version: ">=24.14.1",
        },
      },
    },
    presets: [base, customRules, typeAware, vitest],
  }),
);

Available presets:

  • base
  • contractFixtures
  • customRules
  • fast (see Fast runs)
  • frontend
  • react
  • jest
  • strict and strictTypeAware (opt in; see Strict presets)
  • suppressionPolicy (opt in; see Suppression policy)
  • typeAware
  • vitest

Merge behavior:

  • plugins, jsPlugins, overrides, and ignorePatterns append in order
  • rules, settings, options, categories, env, and globals merge left-to-right
  • localConfig always wins over preset values when keys conflict

For React applications, compose the standalone frontend policy with the repository's test runner:

import { createOxlintConfig, frontend, typeAware, vitest } from "@clipboard-health/oxlint-config";
import { defineConfig } from "oxlint";

export default defineConfig(
  createOxlintConfig({
    localConfig: {
      ignorePatterns: ["coverage/"],
    },
    presets: [frontend, typeAware, vitest],
  }),
);

Keep repository architecture rules, import restrictions, and additional JavaScript plugins in localConfig.

base is the organization-wide general JavaScript and TypeScript policy. frontend is the standalone frontend application policy, including React, accessibility, and browser-facing JavaScript rules. typeAware contains rules that require Oxlint's --type-aware mode, and vitest adds the complete Vitest policy. Keep repository-specific exceptions in localConfig.

frontend registers the built-in react, jsx-a11y, import, oxc, typescript, and unicorn plugins. typeAware registers typescript, including when composed with another plugin preset without base.

[!IMPORTANT] Upgrading from versions that omitted these plugin registrations can expose existing lint violations. Run normal and type-aware lint when upgrading, and allow enough CI runner memory for the newly active type-aware analysis. Existing repo-local registrations can remain.

JSON config

Create an .oxlintrc.json in your repo root:

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "extends": ["./node_modules/@clipboard-health/oxlint-config/src/base.json"],
  "categories": {
    "correctness": "error",
    "nursery": "off",
    "pedantic": "error",
    "perf": "error",
    "restriction": "error",
    "style": "off",
    "suspicious": "error"
  },
  "ignorePatterns": [".agents", "coverage/", "node_modules/"],
  "options": {
    "denyWarnings": true,
    "reportUnusedDisableDirectives": "error",
    "typeAware": true,
    "typeCheck": true
  },
  "settings": {
    "node": {
      "version": ">=24.14.1"
    }
  }
}

Use JSON only when simple inheritance is enough. JSON extends still works for shared presets, but repo-local array fields like plugins and overrides will not get the additive merge behavior provided by createOxlintConfig.

For repos using Vitest, extend from vitest.json instead of base.json to include the vitest plugin and rules:

{
  "extends": ["./node_modules/@clipboard-health/oxlint-config/src/vitest.json"]
}

Override shared rules as needed:

{
  "extends": ["./node_modules/@clipboard-health/oxlint-config/src/base.json"],
  "rules": {
    "no-console": "off"
  }
}

Fast runs

base and frontend enable reportUnusedDisableDirectives: "error", which flags oxlint-disable and eslint-disable comments that no longer suppress anything. The default config is therefore the slow one. The option is only accurate on the full, type-aware run: without type information, typescript/* rules cannot fire, so their directives look unused. The fast preset extends the default by setting the option to "off" for quick non-type-aware local and editor runs.

Config options.reportUnusedDisableDirectives Use for
default (base or frontend) "error" The full type-aware lint run and CI
default + fast "off" Quick non-type-aware local and editor runs

fast sets nothing else, so the two configs are otherwise identical. Compose it last in presets; localConfig still wins if a repository sets the option itself.

A repository keeps its rules in oxlint.config.ts and derives the fast config from it, so there is one place to edit rules:

// oxlint.config.ts
import { base, createOxlintConfig, typeAware } from "@clipboard-health/oxlint-config";
import { defineConfig } from "oxlint";

export default defineConfig(
  createOxlintConfig({
    presets: [base, typeAware],
  }),
);
// oxlint.config.fast.ts
import { fast } from "@clipboard-health/oxlint-config";
import { defineConfig } from "oxlint";

import defaultConfig from "./oxlint.config.ts";

export default defineConfig({ extends: [defaultConfig], ...fast });
{
  "scripts": {
    "lint": "oxlint --type-aware --type-check",
    "lint:fast": "oxlint --config oxlint.config.fast.ts"
  }
}

lint loads oxlint.config.ts and runs the type-aware rules with unused-directive reporting. lint:fast selects the fast config and omits --type-aware, so the typeAware preset's rules do not run. Keep typeAware and typeCheck out of the config options and on the lint command line, as above, so the fast config does not need to override them.

The JSON extends entry point base.json includes the option; set options.reportUnusedDisableDirectives to "off" after extending it for a fast config.

Strict presets

These rules catch real bugs but fire often in legacy code, so they are opt-in. Adopt them per repository: add the presets, then suppress existing violations inline in the same change so new code meets the bar.

Preset Rule Catches
strict @clipboard-health/no-ambiguous-positional-parameters Two or more positional parameters where two share a type (callers can swap them) or one is a boolean (unreadable at call sites). A function with a single parameter is exempt, and so are test files, methods whose parameters all carry decorators (NestJS @Headers, @Param), and use in a class that implements NestMiddleware.
strictTypeAware typescript/strict-boolean-expressions Truthiness checks on numbers and enums, where 0 reads as missing. Strings stay allowed: treating "" as missing is usually intended.
presets: [base, customRules, strict, typeAware, strictTypeAware, vitest],

Give each suppression a reason: // oxlint-disable-next-line <rule> -- <reason>.

typescript/strict-boolean-expressions is on the suppression policy's never-suppress list, so a repository that also enables suppressionPolicy must fix its violations instead of suppressing them.

Suppression policy

The suppressionPolicy preset enables @clipboard-health/suppression-policy: every lint suppression needs a specific -- <reason>, and the rules in NEVER_SUPPRESS_RULES (any, the typescript/no-unsafe-* family, strict-boolean-expressions, no-debugger) cannot be suppressed. See the plugin README for the full policy. It is opt in; no other preset enables it.

Until a repository's existing directives comply, run cb-check-suppressions from @clipboard-health/oxlint-plugin in CI. It holds directives added or changed since the merge base to the policy and needs no baseline. Once the backlog is zero, add the preset:

presets: [base, customRules, suppressionPolicy, typeAware, vitest],

Then assert in the repository's Oxlint configuration test that the policy stays on:

import { checkNeverSuppressRules } from "@clipboard-health/oxlint-config";

assert.deepEqual(
  checkNeverSuppressRules({ cwd: REPOSITORY_ROOT, directory: "src" }).unenforcedRules,
  [],
);

checkNeverSuppressRules lints a uniquely named probe .ts file written directly in directory with the repository's own Oxlint and configuration. It fails if the rule is turned off, or if an override disables it for that file. It does not detect overrides that match only other file extensions, such as *.tsx, or other paths. Call it for each directory that must enforce the policy.

Lint ceilings

lint-ceilings.json holds per-file upper bounds for count rules such as max-lines and complexity, so a repository can keep strict defaults while existing large or complex files stay as they are. A listed file may shrink but not grow. Pull requests don't edit the file: the cb-lint-ceilings check CLI blocks growth, and a weekly bot PR lowers stale values. This avoids the merge conflicts of exact-count baselines.

{
  "version": 1,
  "rules": {
    "complexity": {
      "src/modules/users/user-manipulation.service.ts": 58
    },

    "max-lines": {
      "src/app/lib/analytics/events.ts": 2802,

      "src/app/redesign/Login/Login.tsx": 3264
    }
  }
}
  • Keys under rules are canonical Oxlint rule names: complexity, import/max-dependencies, max-depth, max-lines, max-lines-per-function, max-nested-callbacks, max-params and max-statements. Aliases such as eslint/max-lines are rejected. JavaScript plugin rules aren't supported yet: oxlint --print-config omits their options, so the CLI can't measure them against the configured default.
  • Paths are relative to the directory that holds lint-ceilings.json and oxlint.config.ts: the repository root, or the package in a monorepo whose packages each configure Oxlint. For per-function rules such as complexity, the value is the file's largest function value, because Oxlint overrides apply to whole files.
  • The layout is canonical: rules and paths sorted, a blank line between entries. init and tighten write it, and check fails on any other layout.
Configure

Pass the parsed file to createOxlintConfig:

import { base, createOxlintConfig, typeAware, vitest } from "@clipboard-health/oxlint-config";
import { defineConfig } from "oxlint";

import ceilings from "./lint-ceilings.json" with { type: "json" };

export default defineConfig(createOxlintConfig({ ceilings, presets: [base, typeAware, vitest] }));

The factory appends one override per listed file after every preset and local override. Oxlint applies the last matching override, so a ceiling listed before a later glob override, such as a higher max-lines for test files, would be ignored. Each ceiling override also carries the severity and options the file otherwise gets, such as skipComments, because an override replaces a rule's options. It skips files where the rule is off, so a ceiling never turns a rule back on. The factory assumes oxlint.config.ts and lint-ceilings.json sit in the same directory.

Commands

cb-lint-ceilings ships in @clipboard-health/oxlint-plugin, a dependency of this package. It measures with the repository's own Oxlint and configuration, with ceilings ignored, so its numbers match the linter's. It reads the root configuration through oxlint --print-config, which drops rule options inherited through extends (Oxlint 1.91). Build the root oxlint.config.ts with createOxlintConfig, not extends, so options such as max survive.

npx cb-lint-ceilings init                 # one entry per file above its default, all supported rules
npx cb-lint-ceilings init --rule complexity
npx cb-lint-ceilings check                # in CI; locally compares with the merge base of origin/HEAD
npx cb-lint-ceilings check --base origin/main
npx cb-lint-ceilings tighten              # weekly, on the default branch

check looks at changed files that have a ceiling and lints their base and current versions. It fails when:

  • a listed file's value grew, even if it is still under its ceiling. For per-function rules, it fails when the file's largest value grew or the total excess over the default grew. Splitting a function at 40 into two at 25 passes (excess 20 → 10), while a new function at 22 in a listed file fails even though the file's largest value is unchanged.
  • an entry was added or raised. An entry that follows its file's rename at the same or a lower value is not an addition.

Stale-high values, entries for deleted files or files now within the default, and lowered or removed entries all pass. --allow-increases reports increases without failing: pass it from CI only when an increase is approved.

CI

Run check as its own small job, on an ephemeral runner, with the default merge-commit checkout. In GitHub Actions, check compares a pull request's merge commit with its first parent and a merge-queue commit with the queue's base (merge_group.base_sha). fetch-depth: 2 covers pull requests and merge or squash queues; a rebase queue needs depth of at least the pull request's commit count plus one. Any other checkout, such as the pull request head, falls back to the merge base with the pull request base and needs that history:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @clipboard-health/oxlint-config

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229