Skip to content

Commit 93e9a7c

Browse files
committed
format: compacted with use of prettier-ignore
1 parent 988711c commit 93e9a7c

File tree

1 file changed

+8
-42
lines changed

1 file changed

+8
-42
lines changed

src/components/workspace/FileList.tsx

Lines changed: 8 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -15,57 +15,23 @@ import type { LucideIcon } from 'lucide-react';
1515
import { ScrollArea } from '@/components/ui/scroll-area';
1616
import type { FileType } from '@/types/workspace';
1717

18+
// prettier-ignore
1819
const CODE_EXTENSIONS = [
1920
// Web
20-
'js',
21-
'ts',
22-
'jsx',
23-
'tsx',
24-
'html',
25-
'css',
26-
'scss',
27-
'less',
21+
'js', 'ts', 'jsx', 'tsx', 'html', 'css', 'scss', 'less',
2822
// Backend
29-
'py',
30-
'rb',
31-
'php',
32-
'java',
33-
'go',
34-
'rs',
35-
'cs',
36-
'cpp',
37-
'c',
38-
'h',
23+
'py', 'rb', 'php', 'java', 'go', 'rs', 'cs', 'cpp', 'c', 'h',
3924
// Config/Data
40-
'json',
41-
'yaml',
42-
'yml',
43-
'toml',
44-
'xml',
45-
'ini',
25+
'json', 'yaml', 'yml', 'toml', 'xml', 'ini',
4626
// Shell
47-
'sh',
48-
'bash',
49-
'zsh',
50-
'fish',
27+
'sh', 'bash', 'zsh', 'fish'
5128
];
5229

30+
// prettier-ignore
5331
const ARCHIVE_EXTENSIONS = ['zip', 'tar', 'gz', 'tgz', '7z', 'rar', 'bz2', 'xz'];
5432

55-
const DOCUMENT_EXTENSIONS = [
56-
'pdf',
57-
'doc',
58-
'docx',
59-
'xls',
60-
'xlsx',
61-
'ppt',
62-
'pptx',
63-
'odt',
64-
'ods',
65-
'odp',
66-
'md',
67-
'txt',
68-
];
33+
// prettier-ignore
34+
const DOCUMENT_EXTENSIONS = ['pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'odt', 'ods', 'odp', 'md', 'txt'];
6935

7036
const getFileIcon = (file: FileType): LucideIcon => {
7137
// Get lowercase extension

0 commit comments

Comments
 (0)