Recently, we've upgraded to ESLint 3.0.0 and started to receive the following message running the grunt eslint
task:
> $ grunt eslint
Running "eslint:files" (eslint) task
Warning: No ESLint configuration found. Use --force to continue.
Here is the grunt-eslint
configuration:
var lintTargets = [
"<%= app.src %>/**/*/!(*test|swfobject)+(.js)",
"test/e2e/**/*/*.js",
"!test/e2e/db/models/*.js"
];
module.exports.tasks = {
eslint: {
files: {
options: {
config: 'eslint.json',
fix: true,
rulesdir: ['eslint_rules']
},
src: lintTargets
}
}
};
What should we do to fix the error?
Try to swap
config
withconfigFile
. Then :eslint.json
file andGruntfile.js
file)eslint.json
), i.e.:.
for more examples, go here.