-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcspell.config.cjs
More file actions
46 lines (43 loc) · 1.32 KB
/
cspell.config.cjs
File metadata and controls
46 lines (43 loc) · 1.32 KB
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
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: MIT
const { resolve } = require("path");
const DICTIONARIES_BASE_PATH = resolve(__dirname, "cspell");
module.exports = {
// Version of the setting file. Always 0.2
version: "0.2",
// Paths to be ignored
ignorePaths: [
"**/node_modules/**",
".husky/**",
"**/pnpm-lock.yaml",
"**/cspell/*.txt",
"cspell.config.cjs",
"**/.gitignore",
"**/coverage/**",
"**/dist/**",
],
caseSensitive: false,
// Language - current active spelling language
language: "en",
// Dictionaries to be used
dictionaryDefinitions: [
{ name: "company", path: `${DICTIONARIES_BASE_PATH}/company.txt` },
{
name: "missing",
path: `${DICTIONARIES_BASE_PATH}/missing.txt`,
},
],
dictionaries: ["company", "missing"],
languageSettings: [
{
// In markdown files
languageId: "markdown",
// Exclude code blocks from spell checking
ignoreRegExpList: ["/^\\s*```[\\s\\S]*?^\\s*```/gm"],
},
],
// The minimum length of a word before it is checked.
minWordLength: 4,
// cspell:disable-next-line FlagWords - list of words to be always considered incorrect. This is useful for offensive words and common spelling errors. For example "hte" should be "the"
flagWords: ["hte"],
};