Linting not working when using babel-eslint on Sublime Text 3

前端 未结 1 679
忘了有多久
忘了有多久 2021-02-05 21:41

I am trying to get babel-eslint to work on Sublime 3. I have installed:

  • eslint and babel-eslint globally on npm
  • SublimeLinter package on Sublime
1条回答
  •  礼貌的吻别
    2021-02-05 22:16

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

    • 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.

    I hope some of this will help.

    0 讨论(0)
提交回复
热议问题