Skip to content

Commit 4db7fe5

Browse files
committed
ci: 🚀 lint stage 配置抽离
1 parent 62f7eb5 commit 4db7fe5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.lintstagedrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default {
2+
'*.{vue,js,ts}': [
3+
() => 'pnpm check:type',
4+
],
5+
'*.{vue,js,ts,json,html}': [
6+
'pnpm lint:fix',
7+
],
8+
}

package.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,5 @@
4040
"unplugin-auto-import": "^19.3.0",
4141
"vite": "npm:rolldown-vite@latest",
4242
"vue-tsc": "^3.0.6"
43-
},
44-
"lint-staged": {
45-
"*.{vue,js,ts}": [
46-
"pnpm check:type"
47-
],
48-
"*.{vue,js,ts,json,html}": [
49-
"pnpm lint:fix"
50-
]
5143
}
5244
}

0 commit comments

Comments
 (0)