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
Post a Comment