dstroot / skeleton

Node Express MongoDB Bootstrap Passport... all rolled up into juicy goodness
skeleton-app.jit.su
MIT License
369 stars 47 forks source link

invalid line breaks after gulp #27

Closed louisdmli closed 10 years ago

louisdmli commented 10 years ago

After I cloned the project, and run gulp, I get:

[01:13:21] Invalid line break at config.js : 1 |'use strict'; ---------------------^ 2 | 3 |/** .... for all the .js files. The project can still start but is there a way to remove that error? I use windows 8.1 if that makes a difference.

rijvirajib commented 10 years ago

In your .jshintrc file, there is a "laxbreak" variable set to false. Set this to true. You may also get this from your .jscsrc file, find and remove the following line:

"validateLineBreaks": "LF",

louisdmli commented 10 years ago

That fixed the problem. Thank you

dstroot commented 10 years ago

Just for my knowledge is that purely a Windows issue? I never see these errors on my Mac.

I would suppose the line ending issues would be OK on Mac and Linux and only a problem on Windows?

Maybe I can mention this in the readme.

rijvirajib commented 10 years ago

Yes, it appears only in Windows, from what I've seen.

dstroot commented 10 years ago

Thanks!