1 Star 0 Fork 0

ZHB / Business

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.cjs 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
ZHB 提交于 2023-11-17 10:30 . 项目模板
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",//关闭组件名格式校验
}
}
1
https://gitee.com/zhb542473232/business.git
git@gitee.com:zhb542473232/business.git
zhb542473232
business
Business
master

搜索帮助