frankyonnetti
2/1/2020 - 7:36 PM

#eslint #javascript

eslint #eslint #javascript

Ignore class names using globals


/* globals MY_GLOBAL */

A directive for telling JSHint to ignore a block of code.


/* jshint ignore:start */

  // Code here will be linted with ignored by JSHint.

/* jshint ignore:end */

All code in between ignore:start and ignore:end won't be passed to JSHint so you can use any language extension. Additionally, you can ignore a single line with a trailing comment:


ignoreThis(); // jshint ignore:line

Ignore globals


/* global $:false */
/* global Drupal:false */