代码拉取完成,页面将自动刷新
/* 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'
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
'prettier/prettier': [
'warn',
{
// 单引号
singleQuote: true,
// 去除分号
semi: false,
// 80个字符换行
printWidth: 80,
// 对象数组中, 去除最后的逗号
// [{name: '张三', ...}, {...}, {...},] => [{name: '张三', ...}, {...}, {...}]
trailingComma: 'none',
// 自动换行
endOfLine: 'auto'
}
],
// vue中组件的命名规范:大驼峰式
'vue/multi-word-component-names': [
'warn',
{
// 忽略index.vue文件
ignores: ['index']
}
],
// 允许对props进行解构, 我们会开启保持响应式的语法糖
'vue/no-setup-props-destructure': ['off']
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。