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