2022-07-01 14:32:25 +08:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
node: true,
|
2023-12-13 17:31:39 +08:00
|
|
|
'vue/setup-compiler-macros': true,
|
2022-07-01 14:32:25 +08:00
|
|
|
},
|
|
|
|
extends: [
|
2023-12-13 17:31:39 +08:00
|
|
|
'plugin:vue/vue3-essential',
|
|
|
|
'eslint:recommended',
|
|
|
|
'@vue/prettier', //使用 prettier airbnb standard
|
2022-07-01 14:32:25 +08:00
|
|
|
],
|
|
|
|
parserOptions: {
|
2023-12-13 17:31:39 +08:00
|
|
|
parser: '@babel/eslint-parser',
|
2022-07-01 14:32:25 +08:00
|
|
|
requireConfigFile: false,
|
|
|
|
},
|
|
|
|
rules: {
|
2023-12-13 17:31:39 +08:00
|
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
|
|
// 'max-len': ['error', { code: 120 }],
|
2022-07-01 14:32:25 +08:00
|
|
|
},
|
|
|
|
};
|