Refill task eslint
Eslint task in Refill format
Shields
Installation
npm install --save refill-task-eslint refill gulp
Usage
gulpfile.js
require('refill')({ 'lint-js': { task: require('refill-task-eslint') }}, require('gulp'), mode)
mode
Mode object. Determines task mode of operation.
{ // If watch is true and eslintFix is false rerun eslint on any js file changes. Do not stop on errors. // If false run only once and stop on any errors watch: true // If false run only once and stop on any errors, and attempt to fix what can be fixed automatically by eslint itself eslintFix: true}
Default options
{ globs: [ 'gulpfile.js', 'gulp/*.js', 'gulp/**/*.js', 'src/*.js', 'src/**/*.js' ], globsOptions: { base: './' }, dest: '', eslint: { configFile: path.join(__dirname, '.eslintrc.dist.json') }}