You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{ argv = ["vp", "check", "--no-lint", "index.js"], comment = "Direct formatting does not change the root settings used by check.", continue-on-failure = true },
11
11
]
12
12
13
13
[[case]]
@@ -22,11 +22,32 @@ steps = [
22
22
]
23
23
24
24
[[case]]
25
-
name = "check_fix_uses_discovered_format"
25
+
name = "check_fix_uses_root_format"
26
26
vp = "local"
27
27
cwd = "packages/app"
28
28
steps = [
29
29
{ argv = ["vp", "check", "--fix", "fix.js"] },
30
-
{ argv = ["vpt", "print-file", "fix.js"], comment = "Formatting after the root curly lint fix uses package quotes and semicolons." },
30
+
{ argv = ["vpt", "print-file", "fix.js"], comment = "Formatting after the curly lint fix also uses root quotes and semicolons." },
Copy file name to clipboardExpand all lines: crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/workspace_fmt_root_config/snapshots/check_fix_uses_root_format.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# check_fix_uses_discovered_format
1
+
# check_fix_uses_root_format
2
2
3
3
## `vp check --fix fix.js`
4
4
@@ -9,12 +9,12 @@ pass: Found no warnings or lint errors in 1 file (<duration>, <n> threads)
9
9
10
10
## `vpt print-file fix.js`
11
11
12
-
Formatting after the root curly lint fix uses package quotes and semicolons.
12
+
Formatting after the curly lint fix also uses root quotes and semicolons.
Copy file name to clipboardExpand all lines: crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/workspace_fmt_root_config/snapshots/discovered_format_options.global.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,17 @@ Finished in <duration> on 1 files using <n> threads.
15
15
16
16
## `vp check --no-lint index.js`
17
17
18
-
The formatting phase of check also discovers the package config.
18
+
The check command keeps the root format settings.
19
+
20
+
**Exit code:** 1
19
21
20
22
```
21
23
VITE+ - The Unified Toolchain for the Web
22
24
23
-
pass: All 1 file are correctly formatted (<duration>, <n> threads)
25
+
error: Formatting issues found
26
+
index.js (<duration>)
27
+
28
+
Found formatting issues in 1 file (<duration>, <n> threads). Run `vp check --fix` to fix them.
Copy file name to clipboardExpand all lines: crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/workspace_fmt_root_config/snapshots/discovered_format_options.local.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,15 @@ Finished in <duration> on 1 files using <n> threads.
13
13
14
14
## `vp check --no-lint index.js`
15
15
16
-
The formatting phase of check also discovers the package config.
16
+
The check command keeps the root format settings.
17
+
18
+
**Exit code:** 1
17
19
18
20
```
19
-
pass: All 1 file are correctly formatted (<duration>, <n> threads)
21
+
error: Formatting issues found
22
+
index.js (<duration>)
23
+
24
+
Found formatting issues in 1 file (<duration>, <n> threads). Run `vp check --fix` to fix them.
Copy file name to clipboardExpand all lines: crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/workspace_lint_root_config/snapshots/conflicting_package_options.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,28 @@ Finished in <duration> on 1 file with <n> rules using <n> threads.
15
15
16
16
## `vp check --no-fmt index.ts`
17
17
18
+
Package options cannot disable the root rules or type checking in check.
19
+
20
+
**Exit code:** 1
21
+
18
22
```
19
-
pass: Found no warnings, lint errors, or type errors in 1 file (<duration>, <n> threads)
0 commit comments