Commit 5d67093
chore: resolve remaining switch-exhaustiveness-check warnings
Fix all 20 remaining eslint warnings (switch-exhaustiveness-check):
- fqdn.ts: file-level suppress — all switches branch on 'local' vs default
(production). Tests mock serviceEnvironment() returning undefined, so
explicit enum cases break tests.
- scopes.ts: add explicit 'admin'|'storefront-renderer' cases that throw
- output.ts: add missing 'silent' case to logLevelValue
- tree-kill.ts: suppress — default handles all Unix-like platforms
- mkcert.ts: suppress — default throws for unsupported platforms
- Logs.tsx: replace default with explicit BackgroundExecutionReason.Unknown
- execute-bulk-operation.ts: replace default with explicit error status cases
- format-bulk-operation-status.ts: replace default with explicit status cases
- extension.ts: replace default with explicit undefined|liquid|config-only
- declarative-definitions.ts: replace defaults with explicit GraphQL enum cases
- extension-config-builder.ts: replace default with explicit undefined case,
use ?? instead of || for context fallback chain
Combined with the parent PR, this brings the codebase from 107 warnings to 0.
Co-authored-by: Claude Code <claude-code@anthropic.com>1 parent ccb06f4 commit 5d67093
File tree
12 files changed
+42
-42
lines changed- packages
- app/src/cli
- services
- app-logs/logs-command/ui/components
- bulk-operations
- generate
- shop-import
- payments
- utilities
- cli-kit/src
- private/node/session
- public/node
- context
12 files changed
+42
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
7 | 5 | | |
8 | 6 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 7 | + | |
| 8 | + | |
16 | 9 | | |
17 | 10 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 11 | + | |
22 | 12 | | |
23 | 13 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 14 | + | |
27 | 15 | | |
28 | 16 | | |
29 | 17 | | |
30 | 18 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 19 | + | |
34 | 20 | | |
35 | 21 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 22 | + | |
39 | 23 | | |
40 | 24 | | |
41 | 25 | | |
| |||
65 | 49 | | |
66 | 50 | | |
67 | 51 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 52 | + | |
72 | 53 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 54 | + | |
76 | 55 | | |
77 | 56 | | |
78 | 57 | | |
79 | | - | |
| 58 | + | |
| 59 | + | |
80 | 60 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
216 | 219 | | |
217 | 220 | | |
218 | 221 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
714 | 719 | | |
715 | 720 | | |
716 | 721 | | |
| |||
721 | 726 | | |
722 | 727 | | |
723 | 728 | | |
724 | | - | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
725 | 732 | | |
726 | 733 | | |
727 | 734 | | |
| |||
734 | 741 | | |
735 | 742 | | |
736 | 743 | | |
737 | | - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
738 | 747 | | |
739 | 748 | | |
740 | 749 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
0 commit comments