使用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: {}
}