代码拉取完成,页面将自动刷新
module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
extends: [
'eslint:recommended', // eslint核心规则
'plugin:vue/vue3-essential', // 继承eslint-plugin-vue组件中的基础配置
'plugin:prettier/recommended', // 继承eslint-plugin-prettier组件中的基础配置
'eslint-config-prettier' // 处理配置兼容问题
],
parser: 'vue-eslint-parser', // 使用vue解析器
parserOptions: { // 设置支持的JavaScript语言选项
ecmaVersion: 'latest', // 指定EcmaScript的版本
sourceType: 'module', // script/module
ecmaFeatures: {
jsx: true
}
},
plugins: {
'vue', // eslint-plugin-vue缩写
'prettier' // eslint-plugin-prettier缩写
},
globals: {
// 添加全局变量,防止no-undef 规则发出警告
defineProps: 'readonly',
defineEmits: 'readonly',
defineExpose: 'readonly',
withDefaults: 'readonly'
},
rules: {
'no-console': 'warn',
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"vue/multi-word-component-names":"off",//关闭组件名格式校验
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。