/
cspell-default.config.js
138 lines (138 loc) · 4.76 KB
/
cspell-default.config.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
"use strict";
const settings = {
version: '0.2',
name: 'cspell default settings .js',
id: 'cspell-default-js',
readonly: true,
language: 'en',
description: 'Default cspell configuration.',
words: [],
flagWords: [],
maxNumberOfProblems: 10000,
ignorePaths: [],
allowCompoundWords: false,
dictionaryDefinitions: [],
dictionaries: ['companies', 'softwareTerms', 'public-licenses', 'filetypes'],
ignoreWords: ['abab', 'abcd', 'abcba', 'abcde', 'abcdef', 'abcdefg', 'abcdefgh', 'aead', 'deadbeef'],
patterns: [
{
name: 'HTML-symbol-entity',
description: 'Matches on HTML symbols like `♣`',
pattern: /&[a-z]+;/g,
},
{
name: 'MARKDOWN-link-reference',
description: 'Markdown reference link: `[This is a link][reference]`',
pattern: /(?<=\])\[[-\w.`'"*&;#@ ]+\]/g,
},
{
name: 'MARKDOWN-link-footer',
description: 'Markdown referenced link: `[reference]: https://www.google.com`',
pattern: /\[[-\w.`'"*&;#@ ]+\]:/g,
},
],
languageSettings: [
{
languageId: 'javascript,javascriptreact',
dictionaries: ['typescript', 'node', 'npm'],
},
{
languageId: 'typescript,typescriptreact,mdx',
dictionaries: ['typescript', 'node', 'npm'],
},
{
languageId: 'javascriptreact,typescriptreact,mdx',
dictionaries: ['html', 'html-symbol-entities', 'css', 'fonts'],
},
{
languageId: 'markdown,asciidoc',
dictionaries: ['npm', 'html', 'html-symbol-entities'],
},
{
languageId: 'html,pug,jade,php,handlebars',
dictionaries: ['html', 'fonts', 'typescript', 'css', 'npm', 'html-symbol-entities'],
},
{
languageId: 'json,jsonc',
dictionaries: ['node', 'npm'],
},
{
languageId: 'php',
dictionaries: ['php'],
},
{
languageId: 'css,less,scss',
dictionaries: ['fonts', 'css'],
},
{
languageId: 'map',
enabled: false,
},
{
languageId: 'image',
enabled: false,
},
{
languageId: 'binary',
enabled: false,
},
{
languageId: 'markdown,html,mdx',
ignoreRegExpList: ['HTML-symbol-entity'],
},
{
languageId: 'html',
ignoreRegExpList: ['href'],
},
{
languageId: 'markdown',
ignoreRegExpList: ['MARKDOWN-link-reference', 'MARKDOWN-link-footer'],
},
],
import: [
'./cspell-compatibility.json',
'@cspell/dict-ada/cspell-ext.json',
'@cspell/dict-aws/cspell-ext.json',
'@cspell/dict-bash/cspell-ext.json',
'@cspell/dict-companies/cspell-ext.json',
'@cspell/dict-cpp/cspell-ext.json',
'@cspell/dict-cryptocurrencies/cspell-ext.json',
'@cspell/dict-csharp/cspell-ext.json',
'@cspell/dict-css/cspell-ext.json',
'@cspell/dict-dart/cspell-ext.json',
'@cspell/dict-django/cspell-ext.json',
'@cspell/dict-docker/cspell-ext.json',
'@cspell/dict-dotnet/cspell-ext.json',
'@cspell/dict-elixir/cspell-ext.json',
'@cspell/dict-en_us/cspell-ext.json',
'@cspell/dict-en-gb/cspell-ext.json',
'@cspell/dict-filetypes/cspell-ext.json',
'@cspell/dict-fonts/cspell-ext.json',
'@cspell/dict-fullstack/cspell-ext.json',
'@cspell/dict-git/cspell-ext.json',
'@cspell/dict-golang/cspell-ext.json',
'@cspell/dict-haskell/cspell-ext.json',
'@cspell/dict-html-symbol-entities/cspell-ext.json',
'@cspell/dict-html/cspell-ext.json',
'@cspell/dict-java/cspell-ext.json',
'@cspell/dict-latex/cspell-ext.json',
'@cspell/dict-lorem-ipsum/cspell-ext.json',
'@cspell/dict-lua/cspell-ext.json',
'@cspell/dict-node/cspell-ext.json',
'@cspell/dict-npm/cspell-ext.json',
'@cspell/dict-php/cspell-ext.json',
'@cspell/dict-powershell/cspell-ext.json',
'@cspell/dict-public-licenses/cspell-ext.json',
'@cspell/dict-python/cspell-ext.json',
'@cspell/dict-r/cspell-ext.json',
'@cspell/dict-ruby/cspell-ext.json',
'@cspell/dict-rust/cspell-ext.json',
'@cspell/dict-scala/cspell-ext.json',
'@cspell/dict-sql/cspell-ext.json',
'@cspell/dict-software-terms/cspell-ext.json',
'@cspell/dict-swift/cspell-ext.json',
'@cspell/dict-typescript/cspell-ext.json',
'@cspell/dict-vue/cspell-ext.json',
],
};
module.exports = settings;