-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcspell.config.js
More file actions
47 lines (43 loc) · 911 Bytes
/
cspell.config.js
File metadata and controls
47 lines (43 loc) · 911 Bytes
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
'use strict'
let per_repo_dictionary_file;
if (process.env.GITHUB_WORKSPACE) {
per_repo_dictionary_file = `${process.env.GITHUB_WORKSPACE}/.github/etc/dictionary.txt`;
} else {
/** Assume it's running local and use .github **/
per_repo_dictionary_file = '../../.github/etc/dictionary.txt';
}
/** @type { import("@cspell/cspell-types").CSpellUserSettings } */
const cspell = {
language: 'en',
dictionaries: [
'bash',
'companies',
'cpp',
'csharp',
'css',
'en-gb',
'en_US',
'go',
'html',
'latex',
'misc',
'node',
'npm',
'per-repository dictionary',
'php',
'powershell',
'python',
'softwareTerms',
'typescript'
],
dictionaryDefinitions: [
{
name: 'per-repository dictionary',
path: per_repo_dictionary_file,
}
],
flagWords: [],
ignoreRegExpList: [],
minWordLength: 4
}
module.exports = cspell