-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.js
38 lines (38 loc) · 944 Bytes
/
types.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const MODE_LANGUAGE_MAP = {
css: {
name: 'CSS',
types: ['text/css'],
},
less: {
name: 'LESS',
types: ['text/x-less'],
},
scss: {
name: 'SCSS',
types: ['text/x-scss'],
},
sass: {
name: 'SASS',
types: ['text/x-sass'],
},
md: {
name: 'Markdown',
types: ['text/markdown', 'text/x-markdown'],
},
js: {
name: 'JavaScript',
types: ['text/javascript', 'application/javascript', 'application/x-javascript', 'text/ecmascript', 'application/ecmascript'],
},
jsx: {
name: 'JSX',
types: ['text/jsx', 'text/typescript-jsx'],
},
ts: {
name: 'TypeScript',
types: ['text/typescript', 'application/typescript'],
},
json: {
name: 'JSON',
types: ['application/json', 'application/x-json', 'application/manifest+json', 'application/ld+json'],
},
};