kibana/tasks/config/eslint.js
2015-09-23 13:15:21 -07:00

31 lines
574 B
JavaScript

var resolve = require('path').resolve;
module.exports = function (grunt) {
return {
// just lint the source dir
source: {
options: {
cache: resolve(grunt.config.get('root'), '.eslint.fixSource.cache')
},
files: {
src: '<%= lintThese %>'
}
},
// lint the source and fix any fixable errors
fixSource: {
options: {
cache: resolve(grunt.config.get('root'), '.eslint.fixSource.cache'),
fix: true
},
files: {
src: '<%= lintThese %>'
}
},
staged: {}
};
};