Skip to content

devilleweppenaar/ionic-gulp-eslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ESLint Task

Lint your source files with ESLint.

API

eslint([options])

Available options:

src

(String|Array) Glob or array of globs (What's a glob?) matching JS files. Default: 'app/**/*.js'.

eslintOptions

(Object) ESLint CLI options. Default:

{
    extends: 'eslint:recommended'
}

You can also use a .eslintrc file to supply config options.

Order that ESLint config is applied:

  1. .eslintrc
  2. Supplied config (eslintOptions)
  3. Default

Example

var eslint = require('ionic-gulp-eslint');

// default options
gulp.task('lint', eslint);

// override options
gulp.task('lint', function () {
    return eslint({ src: ['app/**/*.js'] });
});

About

Gulp task for Ionic projects to lint code using ESLint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published