代码拉取完成,页面将自动刷新
/* 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: {
// 关闭驼峰命名规则
'vue/multi-word-component-names': 0,
"no-unused-vars": ["warn", {
"vars": "all",
"args": "none",
}],
'eqeqeq': 'warn', // 要求使用 === 和 !==
'no-dupe-args': 'error', // 禁止 function 定义中出现重名参数
'no-dupe-keys': 'error', // 禁止对象字面量中出现重复的 key
'no-self-compare': 'error', // 禁止自身比较
'no-self-assign': 'error', // 禁止自我赋值
'no-const-assign': 'error', // 禁止修改 const 声明的变量
'no-func-assign': 'error', // 禁止对 function 声明重新赋值
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。