代码拉取完成,页面将自动刷新
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting'
],
rules: {
// 1.需禁用vscode中prettier格式化插件 关闭format on save -- "editor.formatOnSave": false,
// 2.Vscode 中安装ESLint插件 并配置 保存时自动修复 -- "editor.codeActionsOnSave": { "source.fixAll": true },
'prettier/prettier': [
'warn',
{
singleQuote: true, // 单引号
semi: false, // 结尾不加分号
printWidth: 130, // 最大行宽
trailingComma: 'none', // 对象|数组|函数参数 最后项不使用尾逗号
endOfLine: 'auto' // 换行符不限制(win mac 不一致)
}
],
'vue/multi-word-component-names': [
'warn',
{
ignores: ['index'] // vue组件名称多单词组成,但允许 index.vue
}
],
'vue/no-setup-props-destructure': ['off'], // 关闭props解构校验,允许解构 setup props
'no-undef': 'error' // 未定义变量
},
parserOptions: {
ecmaVersion: 'latest'
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。