I am using JSHint and I want to turn off cyclomatic complexity.
How can I do this?
Let's say our function is named x. Then we should just write this :
function x () {
/*jshint maxcomplexity:6 */
}
Where 6 is number js hint usually says it in console like this:
static/desktop.blocks/days/days.js: line 57, col 27, This function's cyclomatic complexity is too high. (6)