2024-08-14 09:27:29 +08:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
node: true
|
|
|
|
},
|
|
|
|
'extends': [
|
|
|
|
'plugin:vue/vue3-essential',
|
|
|
|
'eslint:recommended'
|
|
|
|
],
|
|
|
|
parserOptions: {
|
|
|
|
parser: '@babel/eslint-parser'
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
2024-08-20 17:14:24 +08:00
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
|
|
// 关闭组件命名规则
|
|
|
|
'vue/multi-word-component-names':'off'
|
2024-08-14 09:27:29 +08:00
|
|
|
}
|
|
|
|
}
|