In a specific part of my code I need to allow a string to longer that 120 characters.
I would like to disable for that line of code JSCS validation.
At the moment I get
JSCS: Line must be at most 120 characters
How to do it?
I found a solution using this
//jscs:disable maximumLineLength
..long code here
//jscs:enable maximumLineLength
Ignore all rules at file level
//jscs:disable
Ignore specific rule at file level
//jscs:disable specificRule
if you want to disable globally in your .jscsrc, just add "maximumLineLength": null to it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With