Reputation: 787
I'm trying to ignore certain rules in StandardJS, but I can't get it to work, when using gulp-standard.
Do I have to write the exceptions inside a JavaScript file? I would like to just specify what to ignore in my package file.
Is that possible? How can I do it in my gulpfile?
gulp.task('lint', function () {
return gulp.src(jsWatchPath)
.pipe(standard())
.pipe(standard.reporter('default', {
breakOnError: true,
quiet: true,
showRuleNames: true,
showFilePath: false
}))
});
Upvotes: 2
Views: 2340
Reputation: 975
The gulp-standard package uses StandardJS's Node.js API. Pass your options as an Object using the documentation.
Otherwise, create a file called .eslintrc in your project's root directory with your own ESLint configurations (StandardJS uses ESLint under the hood).
Upvotes: 1