使用eslint时报错:No ESLint configuration found.
因为使用eslint时,项目目录下默认有一个.eslintrc.js文件
如果遇到这个错误,可以在项目下新建一个.eslintrc.js文件,然后进行配置就行了
具体配置根据项目配置,附上我的配置供参考
module.export = {
rout: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
'plugin:vue/recommended'
],
plugins: [
'vue'
],
// 添加自定义规则
rules: {}
}