patronage / bubs-timber

Gulp + Timber + WP
Other
5 stars 1 forks source link

adding jshint to gulp #104

Closed chrisherold closed 5 years ago

chrisherold commented 5 years ago

adding jshint to the gulp scripts process, if there's a warning/error it will fail the gulp release task

can ignore warnings/errors if needed:

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

// Code here will be linted with JSHint.
/* jshint ignore:start */
// Code here will be 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 such as Facebook React. Additionally, you can ignore a single line with a trailing comment:

ignoreThis(); // jshint ignore:line

source: https://jshint.com/docs/