gulp-jscs icon indicating copy to clipboard operation
gulp-jscs copied to clipboard

Extract option

Open opus1269 opened this issue 8 years ago • 3 comments

Would like to see support for the extract option, similar to how gulp-jshint does it.

opus1269 avatar Oct 20 '15 19:10 opus1269

Can link to such option or explain it? (I know I can Google it, but I shouldn't have to.)

sindresorhus avatar Oct 20 '15 19:10 sindresorhus

Here is a link to the usage:

https://www.npmjs.com/package/gulp-jshint#extract

Here is a link to the code:

https://github.com/spalger/gulp-jshint

jscs has a --extract CLI

The basic use case is to check code that is in-lined in an html file. For example, Polymer based Web Components in-line their code.

opus1269 avatar Oct 20 '15 20:10 opus1269

Sounds like a good feature. PR welcome. It should use JSCS to do the extraction, like the CLI does.

sindresorhus avatar Oct 20 '15 20:10 sindresorhus