“No ESLint configuration found” error

后端 未结 11 2213
故里飘歌
故里飘歌 2021-02-01 16:03

Recently, we\'ve upgraded to ESLint 3.0.0 and started to receive the following message running the grunt eslint task:

> $ grunt eslint
Running \"         


        
11条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-01 16:22

    gulp.task('eslint',function(){
    return gulp.src(['src/*.js'])
        .pipe(eslint())
        .pipe(eslint.format())
    });
    
    
    `touch .eslintrc`  instead of .eslint
    

    these two steps may help you!

提交回复
热议问题