-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run Lint script in OS X Error #3
Comments
Once Webpack 2.0 goes out I'll eliminate I suppose I could do this already with Thanks for the feedback! It's very valuable. 👍 |
This probably isn't the ideal solution but it's better than earlier. At least now there are no extra modules hanging around. Related to #3.
@vitaliy-kotov Can you have a look now? The configuration bit should be nicer now (no need for extra modules). |
@bebraw |
@bebraw example works fine after removing eslint preloader from Config |
@bebraw global |
@vitaliy-kotov Got it! We can do a little trick like config/index.js
42:1 error Newline required at end of file but not found eol-last
✖ 1 problem (1 error, 0 warnings) which is much nicer! |
Here's a thread for reference, npm/npm#6124 . |
The potential problem with Note that the errors we get on Webpack side at |
@bebraw
|
@vitaliy-kotov It looks like it's trying to use Maybe I should use |
@bebraw now goes fine. Issue is closed. |
Ok, I'll change the book to use eslint-loader explicitly. That seems like a I'll also add a mention about that piping trick. Thanks. :) On Saturday, 2 May 2015, Vitaliy Kotov [email protected] wrote:
|
Hi, I think 'eslint-loader' should be used instead `eslint`. The later will give the following error. ``` path/to/eslint/lib/api.js didn't return a function @ multi main webpack: bundle is now VALID. ``` Someone talked about it as well in survivejs#3. I'm new to eslint, so I hope this is correct.
@bebraw I also stumbled on this when I forgot to install the |
@crisu83 That's a valid point. There's actually a task for this at webpack-validator in case someone wants to tackle it. See js-dxtools/webpack-validator#42 . |
Source code for Chapter 03
Running
npm run lint
in case if Lint finds nothing - ok
in case if Lint finds errors:
if I run eslint directly without script
eslint .
- goes finelooks like some script - OS X related problem
The text was updated successfully, but these errors were encountered: