V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
lyc575757

ESLint Formatter Inspector: 一个在浏览器中检查 ESLint Formatter 的交互式工具

  •  
  •   lyc575757 · May 9, 2025 · 1414 views
    This topic created in 361 days ago, the information mentioned may be changed or developed.

    效果预览

    demo

    在线 DEMO


    你是否遇到过这种情况,当在终端执行 eslint . 时,ESLint 输出了很长的错误和警告,导致很难查找相关的信息。

    ESLint Formatter Inspector 是一个在浏览器中检查 ESLint Formatter 的工具,并且有许多实用的功能:

    1. 类似终端的 UI ,并且带有多主题切换功能。(使用 webtui 这个库实现,非常好用)

    2. 支持代码高亮

    3. 支持编辑器跳转

    4. 支持 glob 语法的文件搜索

    5. 静态构建

    使用方法

    npm i eslint-formatter-i
    
    eslint [patterns] -f i
    

    如果 ESLint 输出了错误或警告,则会自动打开 Inspector 页面。

    更多信息请查看 GitHub 仓库

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1055 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 17:34 · PVG 01:34 · LAX 10:34 · JFK 13:34
    ♥ Do have faith in what you're doing.