javascript - jscs error : validateLineBreaks: Invalid line break at filename.js -


after grunt-jscs gives following errors base/index.js file.

running "jscs:src" (jscs) task validatelinebreaks: invalid line break @ api/v1/base/index.js :      1 |var errors = require('restify-errors'); -----------------------------------------------^      2 |function base(model) { 

after remove var errors = require('restify-errors'); line, starts giving below error

running "jscs:src" (jscs) task validatelinebreaks: invalid line break @ api/v1/base/index.js :      1 |function base(model) { ------------------------------^ 

how resolve this?

workaround found : created new file , copied content resolves problem.

still want know specific reason why happening?

this issue line breaks
might want put "validatelinebreaks": null .jscsrc file


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -