代码之家  ›  专栏  ›  技术社区  ›  Page not found

如何在附加Docker容器中的编辑器中打开ES lint文件?

  •  0
  • Page not found  · 技术社区  · 3 年前

    我昨天在Docker容器中切换到了开发,总体上运行良好。

    我缺少的一件事是ESLint消息的视觉高亮显示。

    • 跑步 pnpm run lint 在我的集装箱产量(这很好)

      193:6警告:React Hook useCallback缺少依赖项:“state.editingRecord”和“state.originalRecord”。包括它们或删除依赖项数组。react hooks/穷举deps

    • 在编辑器中打开该文件不会给出第193行出现问题的视觉提示

    enter image description here

    预期行为: [] 应加下划线。悬停在上面应该会显示信息 193:6 Warning: React Hook useCallback has missing dependencies: 'state.editingRecord' and 'state.originalRecord'. Either include them or remove the dependency array. react-hooks/exhaustive-deps .

    在容器外工作时,视觉高亮显示有效。

    0 回复  |  直到 3 年前
        1
  •  1
  •   starball Martin Jorgensen    3 年前

    你必须安装 the ESLint extension 在容器中。扩展视图中的扩展页面将有一个按钮,用于“在容器中安装”。这样地:

    enter image description here