I'm looking for a way for jscs (JavaScript Code Style) do the same behavior as jshint to ignore certain rules per file with a comment at the top, or per line, with a start and end comment.
jshint example to ignore a specific rule in the file :
/* jshint undef: false */
jshint example to ignore a specific rule in a block:
// Code here will be linted with JSHint.
/* jshint ignore:start */
// Code here will be linted with ignored by JSHint.
/* jshint ignore:end */
This is available since jscs 1.6.0
For a file scope:
Put this on top of the file to ignore all rules
Put this on top of the file to ignore a specific rule:
Also for ignoring the whole file you can add it to .jscsrc, adding an entry to excludeFiles.
For block scope:
To ignore all rules
To ignore a specific rule: