将包管理器更换为 pnpm,更新 Vue CLI 版本,调整配置文件

This commit is contained in:
2022-03-17 11:50:19 +08:00
parent 347dcd837c
commit d165a0e2be
7 changed files with 13047 additions and 35564 deletions

View File

@@ -1,24 +1,26 @@
// const isProduction = (process.env.NODE_ENV === 'production');
module.exports = {
root: true,
env: {
node: true
node: true,
},
extends: [
'plugin:vue/recommended',
'eslint:recommended'
'eslint:recommended',
],
parserOptions: {
parser: 'babel-eslint'
parser: '@babel/eslint-parser',
},
rules: {
'no-console': 'off',
'no-debugger': 'off',
// 'no-console': (isProduction ? 'warn' : 'off'),
// 'no-debugger': (isProduction ? 'warn' : 'off'),
'vue/html-closing-bracket-newline': 'off',
'vue/html-indent': 'off',
'vue/html-self-closing': 'off',
'vue/max-attributes-per-line': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/no-v-html': 'off',
'vue/singleline-html-element-content-newline': 'off'
'vue/singleline-html-element-content-newline': 'off',
}
};