grunt-eslint

“No ESLint configuration found” error

僤鯓⒐⒋嵵緔 提交于 2019-12-03 05:38:40
问题 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: [

“No ESLint configuration found” error

天大地大妈咪最大 提交于 2019-12-02 22:01:10
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? Arkadiusz Lendzian Try to