Lint your source files with ESLint.
(String|Array) Glob or array of globs (What's a glob?) matching JS files. Default: 'app/**/*.js'
.
(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
var eslint = require('ionic-gulp-eslint');
// default options
gulp.task('lint', eslint);
// override options
gulp.task('lint', function () {
return eslint({ src: ['app/**/*.js'] });
});