Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f92adfae
authored
Jan 12, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 更新 ESLint 和 Stylelint 配置,除vue文件<template> 中使用空格以外,其他使用 tab 缩进
1 parent
e3c9c2d3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
.vscode/settings.json
internal/lint-configs/eslint-config/src/configs/vue.ts
internal/lint-configs/stylelint-config/src/index.ts
venus-admin.code-workspace
.vscode/settings.json
View file @
f92adfa
...
...
@@ -80,6 +80,9 @@
"[json]"
:
{
"editor.defaultFormatter"
:
"esbenp.prettier-vscode"
},
"[yaml]"
:
{
"editor.defaultFormatter"
:
"esbenp.prettier-vscode"
},
//
extensions
"extensions.ignoreRecommendations"
:
true
,
...
...
@@ -252,8 +255,4 @@
"typescript.tsdk"
:
"node_modules/typescript/lib"
,
"oxc.enable"
:
false
,
"cSpell.words"
:
[
"archiver"
,
"axios"
,
"dotenv"
,
"isequal"
,
"jspm"
,
"napi"
,
"nolebase"
,
"rollup"
,
"vitest"
],
"[yaml]"
:
{
"editor.defaultFormatter"
:
"esbenp.prettier-vscode"
}
}
internal/lint-configs/eslint-config/src/configs/vue.ts
View file @
f92adfa
...
...
@@ -159,9 +159,9 @@ export async function vue(): Promise<Linter.Config[]> {
// 控制 Vue 模板中 HTML 标签的缩进
"vue/html-indent"
:
[
"error"
,
4
,
//
缩进空格数
4
,
//
使用 tab 缩进
{
attribute
:
1
,
// 属性换行后缩进 1 级(与标签名对齐)
attribute
:
1
,
baseIndent
:
1
,
// 标签基础缩进
closeBracket
:
0
,
// 闭合标签与开始标签对齐
alignAttributesVertically
:
true
,
// 多属性时垂直对齐
...
...
internal/lint-configs/stylelint-config/src/index.ts
View file @
f92adfa
...
...
@@ -64,6 +64,9 @@ export default {
// 规则配置
rules
:
{
// 缩进规则(使用 tab 缩进,宽度为 1)
"@stylistic/indentation"
:
[
"tab"
,
{
baseIndentLevel
:
0
}
],
// 禁用已弃用的 @-rules 警告
"at-rule-no-deprecated"
:
null
,
// 允许未知的 @-rules(SCSS 和 Tailwind 专用规则)
...
...
venus-admin.code-workspace
View file @
f92adfa
...
...
@@ -13,6 +13,10 @@
"path": "apps/web/venus-micro-app",
},
{
"name": "dj-car-life-system",
"path": "apps/web/vue2/dj-car-life-system",
},
{
"name": "@venus/docs",
"path": "docs",
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment