Skip to content

Commit 7c09d42

Browse files
committed
style: format editor type array in isValidEditorType function
Convert inline array to multi-line format for better readability
1 parent 0e9755d commit 7c09d42

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/core/src/utils/editor.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,15 @@ export type EditorType =
1616
| 'zed';
1717

1818
function isValidEditorType(editor: string): editor is EditorType {
19-
return ['vscode', 'vscodium', 'windsurf', 'cursor', 'vim', 'neovim', 'zed'].includes(
20-
editor,
21-
);
19+
return [
20+
'vscode',
21+
'vscodium',
22+
'windsurf',
23+
'cursor',
24+
'vim',
25+
'neovim',
26+
'zed',
27+
].includes(editor);
2228
}
2329

2430
interface DiffCommand {

0 commit comments

Comments
 (0)