3.0.0 • Published 8 years ago

refill-task-eslint v3.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

Refill task eslint

Eslint task in Refill format

Shields

npm npm npm Travis bitHound Overall Score bitHound Dependencies bitHound Dev Dependencies bitHound Code GitHub forks GitHub stars GitHub followers

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')
  }
}

Changelog

Changelog at github

Sponsors