forked from streetsidesoftware/cspell-dicts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcspell-ext.json
51 lines (51 loc) · 1.64 KB
/
cspell-ext.json
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
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"id": "typescript",
"name": "TypeScript/JavaScript",
"description": "TypeScript and JavaScript dictionary.",
"readonly": true,
// List of dictionary files to add to the global list of dictionaries
"dictionaryDefinitions": [
{
"name": "typescript",
"path": "./dict/typescript.txt",
"description": "TypeScript and JavaScript dictionary."
}
],
// Patterns
"patterns": [
{
"name": "js-hex-escape",
"pattern": "/\\\\x[a-f0-9]{2}/gi",
"description": "JavaScript String Hexadecimal Escape sequence."
},
{
"name": "js-unicode-escape",
"pattern": "/\\\\u[a-f0-9]{4}/gi",
"description": "JavaScript String Unicode Escape sequence."
},
{
"name": "js-regexp-flags",
"pattern": "/\\/[dgimsuy]{1,7}\\b(?=(?:\\.flags\\b)|\\s*$|[;),])/g", // cspell:ignore dgimsuy
"description": "JavaScript Match Regular Expression Flags"
}
],
"languageSettings": [
{
"languageId": "typescript,javascript,typescriptreact,javascriptreact,mdx,astro",
"locale": "*",
"ignoreRegExpList": ["js-hex-escape", "js-unicode-escape", "js-regexp-flags"],
"dictionaries": ["typescript"]
},
{
"languageId": "astro",
"dictionaries": ["html", "html-symbol-entities"]
}
],
"overrides": [
{
"filename": "**/*.astro",
"languageId": "astro" // set the file type to be Astro
}
],
"enabledLanguageIds": ["astro"]
}