mantrajs / mantra-sample-blog-app

A sample blog app built with Mantra
http://mantra-sample-blog-app.herokuapp.com/
MIT License
296 stars 104 forks source link

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

Closed thearabbit closed 8 years ago

thearabbit commented 8 years ago

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.

illmat commented 8 years ago

have you installed eslint?

npm install eslint
xcv58 commented 8 years ago

@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.
thearabbit commented 8 years ago

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.

xcv58 commented 8 years ago

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

thearabbit commented 8 years ago

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

2016-02-16_22-08-38

thearabbit commented 8 years ago

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

kokjinsam commented 8 years ago

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

thearabbit commented 8 years ago

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

npm install -g eslint

apm install language-babel
thearabbit commented 8 years ago

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

xcv58 commented 8 years ago

Could you try to set .eslintrc path?

Arcanemagus commented 8 years ago

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

arunoda commented 8 years ago

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

thearabbit commented 8 years ago

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

tomitrescak commented 8 years ago

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

thearabbit commented 8 years ago

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

tomitrescak commented 8 years ago

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 ;)

thearabbit commented 8 years ago

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

tomitrescak commented 8 years ago

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

thearabbit commented 8 years ago

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

thearabbit commented 8 years ago

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

thearabbit commented 8 years ago

I unchecked Use global ESLint installation. It show

2016-02-17_8-44-59

thearabbit commented 8 years ago

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

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

Thanks for all helping.