I struggled with this problem for quite a while. I found that this configuration of
.eslintrc works for your problem.
It works nicely with Sublime Text 3 with
SublimeLinter-contrib-eslint. Note that you need to
npm install -g eslint babel-eslint. put
.eslintrc in ~/ for global config, put .eslintrc in app folder to overwrite global config.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.