Ai
1 Star 1 Fork 0

朱强/vue3自定义框架

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.cjs 958 Bytes
一键复制 编辑 原始数据 按行查看 历史
motion 提交于 2023-10-09 11:49 +08:00 . fix:eslink
/* 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 声明重新赋值
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/rice-and-motion/vue3-custom-framework.git
git@gitee.com:rice-and-motion/vue3-custom-framework.git
rice-and-motion
vue3-custom-framework
vue3自定义框架
master

搜索帮助