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


i trying babel-eslint work on sublime 3. have installed:

  • eslint , babel-eslint globally on npm
  • sublimelinter package on sublime
  • sublimelinter-contrib-eslint package on sublime

also, have added: "syntax_map": { ... "javascript (babel)": "javascript" } sublimelinter.sublime-settings file.

when run linter "parser": "espree" on .eslintrc file works fine. when change parser babel-eslint stops working.

i tried follow tutorial here: https://medium.com/@dan_abramov/lint-like-it-s-2015-6987d44c5b48 , seem doing correctly.

any ideas on i'm doing wrong?

except in mentioned tutorial, helped me was:

  • upgrade global / local eslint latest version
  • install babel-eslint locally
  • if using eslint plugins, appears must installed locally (eslint-plugin-react in case)
  • as dalgard mentioned can enable debug mode in sublime eslint find out else can wrong, i.e. incompatible versions or corrupted config.

i hope of help.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -