jscs error : validateLineBreaks: Invalid line break at filename.js
<p>After <code>grunt-jscs</code> it gives following errors for <code>base/index.js</code> file.</p>

<pre><code>Running "jscs:src" (jscs) task
validateLineBreaks: Invalid line break at api/v1/base/index.js :
     1 |var errors = require('restify-errors');
-----------------------------------------------^
     2 |function Base(Model) {
</code></pre>

<p>After I remove <code>var errors = require('restify-errors');</code> this line, it starts giving below error</p>

<pre><code>Running "jscs:src" (jscs) task
validateLineBreaks: Invalid line break at api/v1/base/index.js :
     1 |function Base(Model) {
------------------------------^
</code></pre>

<p>How to resolve this?</p>

<p><strong>Workaround found</strong> : Created new file and copied all content to it resolves the problem.</p>

<p>Still want to know any specific reason why this is happening?</p>