克隆git repo并运行grunt后,“错误:无法在cli中找到配置查找.jshintrc”

时间:2016-05-16 10:31:50

标签: npm gruntjs

当我尝试运行grunt时,我收到错误,因为“无法提交配置文件.jshintrc”。我试图安装配置依赖项,但没有任何工作。任何人都可以告诉我如何解决这个特定的错误。我是否需要在我的grunt.js文件中定义任何特定规则,因为我相信这应该在运行grunt后在根文件夹中自动生成。 grunt.js中jshint任务的那一行是 -

grunt.initConfig({
    lesslint:{
      src: ['src/']
    },
    jshint: { // configure the task

      all: ['src/app/**/*.js'],
      options: {

          reporter: require('jshint-html-reporter'),

          reporterOutput: 'out/jshint-report.html',
          //force report
          force: false,
          // JS Validation rules are configured in .jshintrc file.
          jshintrc: '.jshintrc'
      }
    });

非常感谢任何帮助。

0 个答案:

没有答案