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
Post a Comment