mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
30 lines
574 B
JavaScript
30 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: {}
|
|
};
|
|
};
|