惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
IT之家
IT之家
Y
Y Combinator Blog
T
Tailwind CSS Blog
B
Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
J
Java Code Geeks
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
GbyAI
GbyAI
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain Blog

皓子的小站

网站字体应用之坑——font-family 篇 糟糕的 meta name="theme-color" How to Gradually Migrate from ESLint to Oxlint (Without Breaking Everything) 静态资源预压缩:零运行时开销,极致节省带宽 CVE-2025-70886 Proof of Concept (PoC) | A Script to Crash Halo CMS Comment Backend 自定义网页鼠标指针——一段曲折的旅程 CVE-2025-70886 漏洞复现/PoC | 一个脚本让 Halo CMS 评论后台瘫痪 2025 年终总结 & 博客两周年 老用户专享!已有 Halo 专业版授权可免费升级商业版 自动追踪 Oxlint 对 ESLint 规则的新增支持 Halo 贡献者证书与实体周边盲盒开箱 博客评论系统指南 CDN 回源跟随配置导致登录异常问题排查 SCDN 免费赞助计划:助力高质量博客&博客圈 锐捷校园网:网络共享与带宽叠加方案(哈理工案例) ESLint 到 Oxlint 渐进式迁移快速上手指南 Fixing Vite Breaking Inline JS & CSS in Thymeleaf Templates 解决 Vite 破坏 Thymeleaf 模板内联 JS & CSS 的方法 我的博客,为什么是月更? 博客俱乐部一周年纪念品开箱 网站字体加载之坑——format 篇 经历 1000000000 次 DDoS 请求攻击后,我总结了三条经验 题解分享:[AtCoder Beginner Contest 414 E] Count A%B=C 题解分享:[蓝桥杯 2025 国 Python A] 杨辉三角 P12876 FiF口语训练破解刷分教程(适用于 Windows) 不要与蠢人辩论 小心网络地雷·续篇 当心网络组织“开往”·续篇 当心网络组织“开往” 小心网络地雷
How to Automatically Track Newly Supported ESLint Rules i...
HowieHz · 2026-03-09 · via 皓子的小站

简体中文 | English

In a previous post — How to Gradually Migrate from ESLint to Oxlint (Without Breaking Everything) — I covered the official Oxlint migration tool that converts your ESLint Flat Config into an Oxlint config.

Over the past few months, Oxlint has been steadily implementing rules that were previously unsupported, so the number of unsupported rule warnings you get when running the migration tool has been shrinking.

To make sure I can take advantage of newly supported rules as soon as they land, I put together a simple GitHub Actions workflow that runs the migration tool on a daily schedule and automatically opens a PR whenever .oxlint.json has changes.

Just drop the snippet below into .github/workflows/oxlint-migrate.yml in your project and you're good to go. All the relevant notes are in the comments.

name: Oxlint Migration

on:
  schedule:
    # Runs daily — feel free to adjust the schedule
    - cron: '0 16 * * *'
  workflow_dispatch:  # Can also be triggered manually

jobs:
  migrate:
    runs-on: ubuntu-latest
    permissions:
      contents: write
      pull-requests: write

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - uses: pnpm/action-setup@v4
        name: Install pnpm
        with:
          run_install: false

      - name: Install Node.js
        uses: actions/setup-node@v4
        with:
          node-version: 20
          cache: 'pnpm'

      - name: Install dependencies
        run: pnpm install

      - name: Run oxlint migration
        # Customize this as needed, e.g. pnpm dlx @oxlint/migrate --type-aware
        # For more details, see: https://howiehz.top/archives/eslint-to-oxlint-gradual-migration-guide#%E8%87%AA%E5%8A%A8%E8%BF%81%E7%A7%BB-ESLint-%E9%85%8D%E7%BD%AE
        run: pnpm dlx @oxlint/migrate --type-aware --with-nursery
        # In my own setup, I append a formatter script defined in package.json to avoid
        # spurious diffs caused by formatting inconsistencies, e.g. appending "&& pnpm run format"

      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v7
        with:
          token: ${{ secrets.PR_WORKFLOW_TOKEN }}
          # Create a Fine-grained PAT: https://github.com/settings/personal-access-tokens
          # Create a repo secret: https://github.com/<owner>/<repo>/settings/secrets/actions
          # Generate a Fine-grained PAT, then create a repo secret named PR_WORKFLOW_TOKEN and paste the token in.
          # We use a Fine-grained PAT instead of the default GITHUB_TOKEN so that PRs created
          # by this workflow can trigger other workflows (e.g. for CI checks).
          # If you don't need that behavior, you can remove the token line above.
          # Required Fine-grained PAT permissions:
          # - Contents: Read and Write (to create branches and commits)
          # - Pull requests: Read and Write (to open PRs)
          # - Workflows: Read and Write (to allow the PR to trigger other workflows)
          commit-message: 'chore: update oxlint configuration'
          title: 'chore: update oxlint configuration'
          body: |
            This PR updates the oxlint configuration by running the migration tool.
            
            Generated automatically by the oxlint-migrate workflow.
          branch: chore/oxlint-migrate
          delete-branch: true
          labels: dependencies
          add-paths: |
            .oxlintrc.json

Feel free to drop a comment below if you have any questions or suggestions! 🚀