将包管理器更换为 pnpm,更新 Vue CLI 版本,调整配置文件
This commit is contained in:
14
.eslintrc.js
14
.eslintrc.js
@@ -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',
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user