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 526e9056
authored
Jan 09, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style: monorepo仓库使用lintstage来校验.该插件会仅对git提交的文件进行校验.适合老项目
1 parent
0b9f2f16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
25 deletions
.lintstagedrc.js
.vscode/settings.json
apps/uniapp/aus-app/package.json
lefthook.yml
package.json
pnpm-lock.yaml
.lintstagedrc.js
View file @
526e905
export
default
{
export
default
{
"*.{js,ts,tsx,jsx,vue}"
:
[
"prettier --write"
,
"eslint --fix"
],
"*.{js,jsx,ts,tsx,vue,md}"
:
"pnpm eslint --cache --fix"
,
"*.{md,json,css,less,scss}"
:
[
"prettier --write"
],
"package.json"
:
"pnpm eslint --cache --fix"
,
"{!(package)*.json,*.code-snippets,.!(browserslist)*rc}"
:
"pnpm eslint --cache --fix"
,
"*.{scss,less,styl,html,vue,css,wxss}"
:
"pnpm stylelint --fix --allow-empty-input"
,
};
};
.vscode/settings.json
View file @
526e905
...
@@ -252,9 +252,7 @@
...
@@ -252,9 +252,7 @@
"oxc.enable"
:
false
,
"oxc.enable"
:
false
,
"cSpell.words"
:
[
"archiver"
,
"axios"
,
"dotenv"
,
"isequal"
,
"jspm"
,
"napi"
,
"nolebase"
,
"rollup"
,
"vitest"
],
"cSpell.words"
:
[
"archiver"
,
"axios"
,
"dotenv"
,
"isequal"
,
"jspm"
,
"napi"
,
"nolebase"
,
"rollup"
,
"vitest"
],
//
语言特定配置
-
LESS
注释
"[yaml]"
:
{
"[less]"
:
{
"editor.defaultFormatter"
:
"esbenp.prettier-vscode"
"editor.comments.lineComment"
:
"//"
,
"editor.comments.blockComment"
:
[
"/*"
,
"*/"
]
}
}
}
}
apps/uniapp/aus-app/package.json
View file @
526e905
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
"axios-adapter-uniapp"
:
"^0.1.4"
,
"axios-adapter-uniapp"
:
"^0.1.4"
,
"axios-miniprogram-adapter"
:
"^0.3.5"
,
"axios-miniprogram-adapter"
:
"^0.3.5"
,
"crypto-js"
:
"^4.2.0"
,
"crypto-js"
:
"^4.2.0"
,
"lib"
:
"file:../lib"
,
"pinyin-pro"
:
"^3.27.0"
,
"pinyin-pro"
:
"^3.27.0"
,
"uview-plus"
:
"^3.6.4"
,
"uview-plus"
:
"^3.6.4"
,
"vue"
:
"3.4.21"
,
"vue"
:
"3.4.21"
,
...
...
lefthook.yml
View file @
526e905
...
@@ -46,24 +46,8 @@ pre-commit:
...
@@ -46,24 +46,8 @@ pre-commit:
commands
:
commands
:
code-workspace
:
code-workspace
:
run
:
pnpm vsh code-workspace --auto-commit
run
:
pnpm vsh code-workspace --auto-commit
lint-md
:
lint-staged
:
run
:
pnpm eslint --cache --fix {staged_files}
run
:
pnpm lint-staged
glob
:
"
*.md"
lint-vue
:
glob
:
"
*.vue"
run
:
pnpm eslint --cache --fix {staged_files}
lint-js
:
run
:
pnpm eslint --cache --fix {staged_files}
glob
:
"
*.{js,jsx,ts,tsx}"
lint-style
:
run
:
pnpm stylelint --fix --allow-empty-input {staged_files}
glob
:
"
*.{scss,less,styl,html,vue,css,wxss}"
lint-package
:
run
:
pnpm eslint --cache --fix {staged_files}
glob
:
"
package.json"
lint-json
:
run
:
pnpm eslint --cache --fix {staged_files}
glob
:
"
{!(package)*.json,*.code-snippets,.!(browserslist)*rc}"
post-merge
:
post-merge
:
commands
:
commands
:
...
...
package.json
View file @
526e905
...
@@ -79,6 +79,7 @@
...
@@ -79,6 +79,7 @@
"happy-dom"
:
"catalog:"
,
"happy-dom"
:
"catalog:"
,
"husky"
:
"^9.1.7"
,
"husky"
:
"^9.1.7"
,
"lefthook"
:
"catalog:"
,
"lefthook"
:
"catalog:"
,
"lint-staged"
:
"^16.2.7"
,
"playwright"
:
"catalog:"
,
"playwright"
:
"catalog:"
,
"rimraf"
:
"catalog:"
,
"rimraf"
:
"catalog:"
,
"rollup"
:
"catalog:"
,
"rollup"
:
"catalog:"
,
...
...
pnpm-lock.yaml
View file @
526e905
This diff is collapsed.
Click to expand it.
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