⛔️ [DEPRECATED] Tool to ensure that your JavaScript code does not violate the specified coding standard (Idiomatic Style Manifesto or JQuery Core Style Guidelines)
If I set requireInTheBeginning: true, I expected 0 or 1 occurrences of the var keyword as the first line of a function would be accepted. However, jscodesniffer is reporting an error for code like the following (sorry but I had difficulties making a mocha test case):
If I set
requireInTheBeginning: true
, I expected 0 or 1 occurrences of thevar
keyword as the first line of a function would be accepted. However, jscodesniffer is reporting an error for code like the following (sorry but I had difficulties making a mocha test case):Is this a bug or intentional?