且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Sublime Text 3上使用babel-eslint时,Linting无法正常工作

更新时间:2022-05-21 10:29:51

除了上面提到的教程之外,对我有帮助的是:

Except what was in mentioned tutorial, what helped me was:


  • 将全球/本地eslint升级到最新版本

  • 在本地安装babel-eslint

  • 如果您使用任何eslint插件,它们似乎也必须在本地安装(eslint-plugin-react in my case)

  • 正如Dalgard所说,你也可以在Sublime eslint中启用调试模式,找出其他可能出错的地方,即不兼容的版本或损坏的配置。

  • upgrade global / local eslint to latest version
  • install babel-eslint locally
  • if you are using any eslint plugins, it appears they must be also installed locally (eslint-plugin-react in my case)
  • as Dalgard mentioned you can also enable debug mode in Sublime eslint to find out what else can be wrong, i.e. incompatible versions or corrupted config.

我希望其中一些有用。