1 Star 0 Fork 0

Carl/vue3-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.cjs 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
Carl 提交于 2024-01-30 18:06 +08:00 . 修改eslint
module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:vue/vue3-essential', 'plugin:prettier/recommended'],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
sourceType: 'module'
},
plugins: ['@typescript-eslint'],
rules: {
'vue/multi-word-component-names': 'off', // 文件名是否驼峰命名
'no-undef': 'off', // 不能有未定义的变量
'@typescript-eslint/no-empty-interface': 'off', // 不允许定义空的接口
'@typescript-eslint/no-explicit-any': 'off', // 关闭any类型警告
'@typescript-eslint/no-unused-vars': 'off', // 不允许未使用的变量
'@typescript-eslint/no-empty-function': 'off', // 不允许未使用的方法
'@typescript-eslint/no-var-requires': 'off', // 不允许使用 require 引入
'vue/no-v-html': 'off', // 不允许使用 v-html 引入
'no-useless-escape': 'off', // 禁止不必要的转义字符
'vue/prop-name-casing': 'off' // 禁止检测驼峰命名
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/webMa/vue3-template.git
git@gitee.com:webMa/vue3-template.git
webMa
vue3-template
vue3-template
master

搜索帮助