1 Star 0 Fork 113

阜東 / tov-template

forked from 帝莎编程 / tov-template 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.json 821 Bytes
一键复制 编辑 原始数据 按行查看 历史
markthree 提交于 2023-08-02 13:13 . chore: 代码格式化
{
"root": true, // 禁止接着往上找
"env": {
"node": true,
"es2021": true,
"browser": true // 浏览器
},
"parser": "vue-eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"parser": "@typescript-eslint/parser",
"ecmaFeatures": {
"jsx": true // 启用 jsx
}
},
"plugins": ["prettier"],
"extends": [
"@unocss",
"eslint:recommended", // 内置规则
"plugin:vue/vue3-recommended", // 支持 vue sfc
"prettier",
"./presets/eslint/.eslintrc-auto-import.json"
],
"rules": {
// 允许相同组件名
"vue/multi-word-component-names": "off",
// prettier 作为规则
"prettier/prettier": "error",
// 禁止使用 var,而应该用 let const
"no-var": "error"
},
"globals": {
"defineOptions": true
}
}
TypeScript
1
https://gitee.com/chenxxxu/tov-template.git
git@gitee.com:chenxxxu/tov-template.git
chenxxxu
tov-template
tov-template
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891