forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
21 lines (16 loc) · 719 Bytes
/
index.ts
File metadata and controls
21 lines (16 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { ConfigurationFile } from '../types';
const config: ConfigurationFile = {
title: 'jsconfig.json',
type: 'jsconfig',
description:
'Configuration for how the editor (and sometimes the bundler) reads and parses JavaScript.',
moreInfoUrl: 'https://code.visualstudio.com/docs/languages/jsconfig',
getDefaultCode: (
template: string,
resolveModule: (path: string) => { code: string } | undefined
) => JSON.stringify({ compilerOptions: { baseUrl: '.' } }, null, 2),
schema:
'https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/jsconfig.json',
partialSupportDisclaimer: `Only \`compilerOptions.baseUrl\` field is supported.`,
};
export default config;