-
Notifications
You must be signed in to change notification settings - Fork 0
chore: upgrade vite-plus to 0.1.16-alpha.4 #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| vp lint | ||
| vp staged | ||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,7 +5,6 @@ | |||||
| "useDefineForClassFields": true, | ||||||
| "allowJs": false, | ||||||
| "skipLibCheck": true, | ||||||
| "esModuleInterop": false, | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of just removing
Suggested change
|
||||||
| "allowSyntheticDefaultImports": true, | ||||||
| "strict": true, | ||||||
| "noUncheckedIndexedAccess": true, | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,7 +5,6 @@ | |||||
| "useDefineForClassFields": true, | ||||||
| "allowJs": false, | ||||||
| "skipLibCheck": true, | ||||||
| "esModuleInterop": false, | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of just removing
Suggested change
|
||||||
| "allowSyntheticDefaultImports": true, | ||||||
| "strict": true, | ||||||
| "noUncheckedIndexedAccess": true, | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,6 +1,9 @@ | ||||||
| import { defineConfig } from "vite-plus"; | ||||||
|
|
||||||
| export default defineConfig({ | ||||||
| staged: { | ||||||
| "*": "vp check --fix", | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using a broad glob like
Suggested change
|
||||||
| }, | ||||||
| lint: { | ||||||
| ignorePatterns: ["npm/**", "crates/yaak-templates/pkg/**", "**/bindings/gen_*.ts"], | ||||||
| options: { | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running both
vp lintandvp stagedin the pre-commit hook is likely redundant.vp stagedis typically used to run checks only on changed files to speed up the commit process. Ifvp lintperforms a full project check, it should be removed from the pre-commit hook to avoid duplicate work and improve performance.