Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计通过

oxlintoxlint 命令行

Agent Skill

oxlint 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

6,384

周安装

266

GitHub Stars

1

下载量

2,128
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:oxlint(oxlint 命令行)
来源仓库:https://github.com/delexw/claude-code-misc
仓库路径:skills/oxlint
安装命令:
npx skills add https://github.com/delexw/claude-code-misc --skill oxlint
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/delexw/claude-code-misc --skill oxlint

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合围绕仓库状态、代码变更或协作事项进行整理与分析。
  • 可结合来源仓库与安装命令核验具体用法和功能边界。
  • 安装前建议确认权限范围、维护状态及是否触发联网或文件读写。
  • oxlint 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Oxlint — High-Performance JS/TS Linter

Oxlint is 50-100x faster than ESLint. It ships with 690+ rules covering ESLint core, TypeScript, React, Jest, Unicorn, jsx-a11y, and more. It prioritizes high-signal correctness checks by default — things that are incorrect, unsafe, or useless — so teams can adopt it without drowning in false positives.

Detection

Before linting, confirm the project uses oxlint by checking for any of:

  • oxlint in package.json devDependencies/dependencies
  • An .oxlintrc.json file in the project root
  • An oxlint.config.ts file in the project root
  • An oxlint or lint script in package.json that references oxlint

If none of these exist, the project doesn't use oxlint — don't run it.

Running Oxlint

After code changes

Run oxlint to check your work. Prefer the project's npm script if one exists:

# If package.json has a lint script using oxlint
npm run lint

# Otherwise, run directly
npx oxlint

Fixing issues automatically

npx oxlint --fix

Use --fix for safe automatic fixes. Avoid --fix-dangerously unless the user explicitly asks for it — it can apply unsafe transformations.

Linting specific files

After editing only a few files, you can lint just those:

npx oxlint src/components/Button.tsx src/utils/helpers.ts

Interpreting output

Oxlint prints diagnostics with rule names in parentheses, e.g. (no-unused-vars). When fixing:

  1. Read the diagnostic message carefully — oxlint gives precise, actionable information
  2. Fix the underlying code issue rather than suppressing the rule
  3. Only add // oxlint-ignore comments as a last resort when the diagnostic is a genuine false positive

Output formats

For CI or tooling integration:

npx oxlint --format json        # Machine-readable JSON
npx oxlint --format github      # GitHub Actions annotations
npx oxlint --format unix        # Simple one-line-per-error format

Configuration

Creating a config

npx oxlint --init

This generates an .oxlintrc.json starter config.

Config file format (.oxlintrc.json)

The config uses JSONC (JSON with comments). Key sections:

{
  // Enable/disable individual rules with severity levels
  "rules": {
    "no-unused-vars": "error",
    "no-console": "warn",
    "no-plusplus": ["error", { "allowForLoopAfterthoughts": true }]
  },

  // Enable groups of related rules by category
  "categories": {
    "correctness": "error",   // Definitely-wrong code
    "suspicious": "warn",     // Probably-wrong code
    "pedantic": "off",        // Opinionated style checks
    "perf": "warn",           // Performance anti-patterns
    "style": "off",           // Cosmetic preferences
    "restriction": "off",     // Extra-strict rules (opt-in)
    "nursery": "off"          // Unstable/experimental rules
  },

  // Plugins to enable (setting this overwrites defaults, so list all you want)
  "plugins": ["typescript", "unicorn", "oxc"],

  // File-specific overrides
  "overrides": [
    {
      "files": ["**/*.test.{ts,tsx}"],
      "rules": { "no-console": "off" }
    },
    {
      "files": ["scripts/**"],
      "rules": { "no-console": "off" }
    }
  ],

  // Environment globals
  "env": {
    "browser": true,
    "node": true
  },

  // Plugin-wide settings
  "settings": {
    "react": {
      "linkComponents": [{ "name": "Link", "linkAttribute": "to" }]
    },
    "jsx-a11y": {
      "components": { "Link": "a", "Button": "button" }
    }
  },

  // Type-aware linting (requires tsconfig)
  "options": {
    "typeAware": true
  }
}

Rule severity levels

  • "off" / "allow" — Disable the rule
  • "warn" — Report but don't fail the build
  • "error" / "deny" — Report and exit non-zero

Unique rule names can omit plugin prefix: "no-console" = "eslint/no-console".

Categories

Categories group rules by intent. The recommended starting point:

  • correctness: "error" — Always on. Catches real bugs.
  • suspicious: "warn" — Good signal, occasionally noisy.
  • Everything else: enable incrementally as the team is ready.

Available plugins

Enabled by default: typescript, unicorn, oxc

Opt-in (CLI flags or config):

PluginCLI flagPurpose
react--react-pluginReact-specific rules
jsx-a11y--jsx-a11y-pluginAccessibility rules for JSX
nextjs--nextjs-pluginNext.js best practices
import--import-pluginImport/export validation
jest--jest-pluginJest testing rules
vitest--vitest-pluginVitest testing rules
jsdoc--jsdoc-pluginJSDoc documentation rules
node--node-pluginNode.js-specific rules
promise--promise-pluginPromise best practices
react-perf--react-perf-pluginReact performance rules
vue--vue-pluginVue.js rules

To disable a default plugin: --disable-typescript-plugin, --disable-unicorn-plugin, --disable-oxc-plugin.

Extending shared configs

{
  "extends": ["./configs/base.json", "./configs/frontend.json"]
}

Later entries override earlier ones. Paths resolve relative to the declaring config.

Monorepo support

Oxlint supports nested configs. Each directory can have its own .oxlintrc.json that overrides parent settings. Disable with --disable-nested-config if unwanted.

CLI Quick Reference

FlagWhat it does
-c, --config=PATHUse a specific config file
--tsconfig=PATHTypeScript config for path aliases
--fixAuto-fix safe issues
--fix-suggestionsAlso apply suggested fixes
-A, --allow=RULESuppress a rule (e.g., -A no-console)
-W, --warn=RULEWarn on a rule
-D, --deny=RULEError on a rule
--quietSuppress warnings, show only errors
--deny-warningsTreat warnings as errors (exit non-zero)
--max-warnings=NFail if more than N warnings
-f, --format=FMTOutput format: default, json, github, unix, etc.
--ignore-pattern=PATExclude files matching pattern
--type-awareEnable type-informed rules (needs tsconfig)
--print-configShow resolved config (useful for debugging)
--rulesList all available rules

Categories can also be used with -A/-W/-D:

npx oxlint -D correctness -W suspicious -A pedantic

Suppressing rules inline

// oxlint-ignore no-console -- needed for debug logging
console.log(debugInfo);

// oxlint-ignore-next-line no-unused-vars
const _placeholder = computeValue();

Use oxlint-ignore (not eslint-disable) — oxlint recognizes both, but prefer its native syntax.

Migrating from ESLint

If the project is moving from ESLint to oxlint:

  1. Side-by-side approach — Run both linters, with eslint-plugin-oxlint disabling rules that oxlint already covers: npm install -D eslint-plugin-oxlint Add it as the last plugin in your ESLint config.
  2. Full replacement — Use @oxlint/migrate to convert your ESLint config: npx @oxlint/migrate This generates an .oxlintrc.json from your existing ESLint configuration.

Supported file types

.js, .mjs, .cjs, .ts, .mts, .cts, .jsx, .tsx, .vue, .svelte, .astro

For .vue, .svelte, and .astro files, oxlint lints only the <script> blocks.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.17%
按下载量换算812

Claude

28.64%
按下载量换算609

Cursor

20.06%
按下载量换算427

Gemini CLI

9.36%
按下载量换算199

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills