ionic-gulp-eslint
v1.0.0
Published
Gulp task for Ionic projects to lint code using ESLint
Downloads
3
Readme
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:
- .eslintrc
- Supplied config (eslintOptions)
- 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'] });
});