0c736724b0
* upgrade eslint, all related deps, and config files * replace gruntify-eslint with basic eslint-cli wrapper * arrow-IIFEs must be invoked outside of the parens * move import statements before their use * reindent to satisfy new indentation check algorithm * place missing semicolon * ignore copy-pasted decode geohash code * [grunt/eslint] fix argument spacing * [gurnt/eslint] add comment about contents of report * [grunt/tasks] use `export default`
34 lines
553 B
JavaScript
34 lines
553 B
JavaScript
import { resolve } from 'path';
|
|
export default grunt => ({
|
|
options: {
|
|
paths: [
|
|
'Gruntfile.js',
|
|
'bin',
|
|
'config',
|
|
'src',
|
|
'tasks',
|
|
'test',
|
|
'utilities',
|
|
],
|
|
},
|
|
|
|
source: {
|
|
options: {
|
|
cache: resolve(grunt.config.get('root'), '.eslint.fixSource.cache')
|
|
}
|
|
},
|
|
|
|
fixSource: {
|
|
options: {
|
|
cache: resolve(grunt.config.get('root'), '.eslint.fixSource.cache'),
|
|
fix: true
|
|
}
|
|
},
|
|
|
|
staged: {
|
|
options: {
|
|
paths: null // overridden by lintStagedFiles task
|
|
}
|
|
}
|
|
});
|