mantrajs / mantra-sample-blog-app

A sample blog app built with Mantra

Home Page: http://mantra-sample-blog-app.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: ESLint not found,........ in atom!

thearabbit opened this issue · comments

I tried to use this package in atom with mantra sample.
But have problem when open any file .
Error: ESLint not found, Please install or make sure Atom is getting $PATH correctly

2016-02-16_21-00-25

Please help me.

have you installed eslint?

npm install eslint
commented

@thearabbit This is not an issue related to this project.

  1. You have to install ESLint globally on your machine, because you check the "Use global ESLint installation".
  2. Make sure the Atom's PATH variable contains the actual path where you install ESLint.

Sorry, I am a newbie for atom.
I base on windows 7.
I installed it already via apm install ... http://info.meteor.com/blog/how-to-set-up-atom-and-webstorm-for-meteor-es6-es2015-and-jsx and then config it like image above.

commented

Did you run npm install -g eslint-plugin-react eslint in your terminal?

Now It don't show error Error: ESLint not found,......, But show error with module:

2016-02-16_22-08-38

Sorry it have problem with eslint or any....

I had this problem too. I restarted atom and everything worked fine again.

Now I tried to install babel-eslint, but still problem.

npm install -g eslint

apm install language-babel

I try to restart many time, but don't work.

commented

Could you try to set .eslintrc path?

@xcv58 This issue was also opened here, @thearabbit hasn't configured eslint properly (at all?) which is why he is still having issues. We pointed him towards some getting started with eslint guides there, I'm not sure why this issue was also filed here...

As @tomitrescak mentioned in the other project, you need to do npm install inside your meteor (Mantra) project.

Thanks, but still don't work Parsing error: import and export.......

Try to download the fresh sample-blog-app .. run npm install make sure there are no errors. Open in Atom. All should be well.

Excuse me, should I install eslint, babel atom pacakage or not?

That is exactly what "npm install" does. It installs all dependencies for you, which are described in the package.json file. It would be great if you would check out the structure of a npm package, or node.js program. It will help you understand what you are doing. Otherwise, just follow instructions ;)

Yes npm install work fine.
But I would like to use atom eslint to check error, so I should be install it or not?

You need to install the linter-eslint only. That is the only thing you need.

Now I tried to remove eslint on atom, it don't show Parsing error: import and export........
But it don't check any error.

Yes I installed

2016-02-17_8-20-07

And then show Parsing error: import and export.......
Should we config linter-eslint?

2016-02-17_8-25-46

I unchecked Use global ESLint installation.
It show

2016-02-17_8-44-59

Now it work fine (Unchecked: Use global ESLint installation), when I update .eslintrc

"linebreak-style": [2, "windows"],

Thanks for all helping.