Skip to content
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

encountered problem while running project #2

Closed
sourabh1031 opened this issue Dec 15, 2017 · 1 comment
Closed

encountered problem while running project #2

sourabh1031 opened this issue Dec 15, 2017 · 1 comment

Comments

@sourabh1031
Copy link

i faced errors while running your project(i.e.contribute to open source) into my system since i am a newbie i can,t understand the errors please help.
2017-12-15 1

@danthareja
Copy link
Owner

It looks like you've figured this one out, @sourabh1031. I'm going to leave a comment explaining this error for the future reference of anyone searching this issue.

These errors are coming from ESLint, a tool that checks your code against certain style rules

In order to understand this particular error message, you must understand a small intricacy about your code. Every line of code ends with a certain hidden character, which can differ based on the operating system you are using when you write the code.

This message basically says that it expects the "Unix" style of hidden character, automatically typed when developing on a Linux or Mac operating system, but it found the "Windows" style of hidden character. This makes sense, because you are developing on the Windows operating system.

How are you supposed to change a hidden character? Luckily, ESLint makes this easy, and has a command that can automatically fix certain style errors like this one.

Run the following command

npm run lint -- --fix

And watch these errors magically disappear!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants