1 Star 0 Fork 0

runler/vue3ts20240907

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.cjs 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
runler 提交于 2024-09-22 21:40 +08:00 . 用户数据的增删改查
/* 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'
],
rules: {
// 1.需禁用vscode中prettier格式化插件 关闭format on save -- "editor.formatOnSave": false,
// 2.Vscode 中安装ESLint插件 并配置 保存时自动修复 -- "editor.codeActionsOnSave": { "source.fixAll": true },
'prettier/prettier': [
'warn',
{
singleQuote: true, // 单引号
semi: false, // 结尾不加分号
printWidth: 130, // 最大行宽
trailingComma: 'none', // 对象|数组|函数参数 最后项不使用尾逗号
endOfLine: 'auto' // 换行符不限制(win mac 不一致)
}
],
'vue/multi-word-component-names': [
'warn',
{
ignores: ['index'] // vue组件名称多单词组成,但允许 index.vue
}
],
'vue/no-setup-props-destructure': ['off'], // 关闭props解构校验,允许解构 setup props
'no-undef': 'error' // 未定义变量
},
parserOptions: {
ecmaVersion: 'latest'
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/runler/vue3ts20240907.git
git@gitee.com:runler/vue3ts20240907.git
runler
vue3ts20240907
vue3ts20240907
main

搜索帮助