【问题标题】:ESLint: Insert `⏎` (prettier/prettier) error in WebStormESLint:在 WebStorm 中插入`⏎`(更漂亮/更漂亮)错误
【发布时间】:2021-04-06 23:55:16
【问题描述】:

每次保存文件时,ESLint 都会出现此错误:

ESLint: Insert (prettier/prettier)

当我添加新行时,它会删除它并仍然显示此错误。

如何防止 WebStorm 中出现此 ESLint 错误?

【问题讨论】:

    标签: intellij-idea webstorm eslint


    【解决方案1】:

    为了防止它在 intellij(Web Storm 等)上出现,请设置编辑器配置以在所有文件的末尾添加新行。

    你可以这样设置: Settings → Editor → General → Ensure line feed at file end on Save

    更多详情:https://stackoverflow.com/a/16761228/134739

    【讨论】:

      猜你喜欢
      • 2020-11-21
      • 2021-06-02
      • 1970-01-01
      • 2020-02-13
      • 2021-04-08
      • 2021-11-01
      • 2021-03-24
      • 2020-10-19
      • 2019-01-23
      相关资源
      最近更新 更多