Skip to content

3.0.0

Compare
Choose a tag to compare
@sindresorhus sindresorhus released this 23 Sep 10:06
· 10 commits to master since this release

Reporters are now supported. The main jscs() function will no longer report anything.

You can also no longer pass JSCS config into jscs(). JSCS config should be in an external file so other tools can also make use of it.

It will now automatically load the closest .jscsrc file. So no longer a need to explicitly specify a configPath.

Change your code accordingly:

 const gulp = require('gulp');
 const jscs = require('gulp-jscs');

 gulp.task('default', () => {
  return gulp.src('src/app.js')
-  .pipe(jscs({configPath: '.jscsrc'}));
+  .pipe(jscs())
+  .pipe(jscs.reporter());
 });

Changes: v2.0.0...v3.0.0