]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
fix: don't throw when no staged files need linting
authorHaoqun Jiang <github@haoqun.me>
Sat, 18 Apr 2026 16:45:07 +0000 (01:45 +0900)
committerHaoqun Jiang <github@haoqun.me>
Sat, 18 Apr 2026 16:45:07 +0000 (01:45 +0900)
vite.config.ts

index e193fb88a375d6e25ea42a906d492eaaa7bb643d..5bc0671224b647141a55b583687fa1c2d318870c 100644 (file)
@@ -2,7 +2,10 @@ import { defineConfig } from 'vite-plus'
 
 export default defineConfig({
   staged: {
-    '*.{js,ts,vue,json}': ['vp fmt --no-error-on-unmatched-pattern', 'vp lint --fix'],
+    '*.{js,ts,vue,json}': [
+      'vp fmt --no-error-on-unmatched-pattern',
+      'vp lint --fix --no-error-on-unmatched-pattern',
+    ],
   },
   fmt: {
     semi: false,