@w5s/cspell-config 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dict/fullstack.txt +3 -0
- package/dict/names.txt +2 -0
- package/dist/index.js +38 -33
- package/package.json +2 -2
- package/src/index.ts +39 -33
package/dict/fullstack.txt
CHANGED
package/dict/names.txt
CHANGED
package/dist/index.js
CHANGED
|
@@ -23,6 +23,38 @@ const excludeImport = new Set([
|
|
|
23
23
|
'@cspell/dict-r/cspell-ext.json',
|
|
24
24
|
'@cspell/dict-scala/cspell-ext.json',
|
|
25
25
|
]);
|
|
26
|
+
const dictionaryDefinitions = [
|
|
27
|
+
{
|
|
28
|
+
addWords: false,
|
|
29
|
+
name: 'w5s-filetypes',
|
|
30
|
+
path: '../dict/filetypes.txt',
|
|
31
|
+
description: 'Additional file types',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
addWords: false,
|
|
35
|
+
name: 'w5s-fullstack',
|
|
36
|
+
path: '../dict/fullstack.txt',
|
|
37
|
+
description: 'Fullstack terms',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
addWords: false,
|
|
41
|
+
name: 'w5s-typescript',
|
|
42
|
+
path: '../dict/typescript.txt',
|
|
43
|
+
description: 'Typescript keywords',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
addWords: false,
|
|
47
|
+
name: 'w5s-names',
|
|
48
|
+
path: '../dict/names.txt',
|
|
49
|
+
description: 'Known names',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
addWords: false,
|
|
53
|
+
name: 'w5s-npm',
|
|
54
|
+
path: '../dict/npm.txt',
|
|
55
|
+
description: 'NPM packages',
|
|
56
|
+
},
|
|
57
|
+
];
|
|
26
58
|
const settings = {
|
|
27
59
|
...defaultSettings,
|
|
28
60
|
name: 'W5s default settings .js',
|
|
@@ -32,39 +64,13 @@ const settings = {
|
|
|
32
64
|
words: [],
|
|
33
65
|
flagWords: [],
|
|
34
66
|
useGitignore: true,
|
|
35
|
-
dictionaryDefinitions: [
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
name
|
|
40
|
-
|
|
41
|
-
description: 'Additional file types',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
name: 'w5s-fullstack',
|
|
45
|
-
path: '../dict/fullstack.txt',
|
|
46
|
-
description: 'Fullstack terms',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
addWords: false,
|
|
50
|
-
name: 'w5s-typescript',
|
|
51
|
-
path: '../dict/typescript.txt',
|
|
52
|
-
description: 'Typescript keywords',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
addWords: false,
|
|
56
|
-
name: 'w5s-names',
|
|
57
|
-
path: '../dict/names.txt',
|
|
58
|
-
description: 'Known names',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
addWords: false,
|
|
62
|
-
name: 'w5s-npm',
|
|
63
|
-
path: '../dict/npm.txt',
|
|
64
|
-
description: 'NPM packages',
|
|
65
|
-
},
|
|
67
|
+
dictionaryDefinitions: [...toArray(defaultSettings.dictionaryDefinitions), ...dictionaryDefinitions],
|
|
68
|
+
dictionaries: [
|
|
69
|
+
...toArray(defaultSettings.dictionaries),
|
|
70
|
+
...dictionaryDefinitions
|
|
71
|
+
.map((dictionaryDefinition) => dictionaryDefinition.name)
|
|
72
|
+
.filter((name) => !['w5s-typescript'].includes(name)),
|
|
66
73
|
],
|
|
67
|
-
dictionaries: [...toArray(defaultSettings.dictionaries), 'w5s-filetypes', 'w5s-fullstack', 'w5s-names'],
|
|
68
74
|
ignoreWords: [],
|
|
69
75
|
import: toArray(defaultSettings.import).filter((dict) => !excludeImport.has(dict)),
|
|
70
76
|
ignorePaths: [
|
|
@@ -74,7 +80,6 @@ const settings = {
|
|
|
74
80
|
// '**/.git/**',
|
|
75
81
|
'**/.vscode/**',
|
|
76
82
|
'**/*.snap',
|
|
77
|
-
'**/lib/**',
|
|
78
83
|
'**/dist/**',
|
|
79
84
|
'**/node_modules/**',
|
|
80
85
|
'**/package.json',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/cspell-config",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "CSpell configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cspell"
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "214e0244a63211d31c96ad0d43fd5b9d080beb67"
|
|
58
58
|
}
|
package/src/index.ts
CHANGED
|
@@ -21,6 +21,39 @@ const excludeImport = new Set([
|
|
|
21
21
|
'@cspell/dict-r/cspell-ext.json',
|
|
22
22
|
'@cspell/dict-scala/cspell-ext.json',
|
|
23
23
|
]);
|
|
24
|
+
const dictionaryDefinitions: AdvancedCSpellSettings['dictionaryDefinitions'] = [
|
|
25
|
+
{
|
|
26
|
+
addWords: false,
|
|
27
|
+
name: 'w5s-filetypes',
|
|
28
|
+
path: '../dict/filetypes.txt',
|
|
29
|
+
description: 'Additional file types',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
addWords: false,
|
|
33
|
+
name: 'w5s-fullstack',
|
|
34
|
+
path: '../dict/fullstack.txt',
|
|
35
|
+
description: 'Fullstack terms',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
addWords: false,
|
|
39
|
+
name: 'w5s-typescript',
|
|
40
|
+
path: '../dict/typescript.txt',
|
|
41
|
+
description: 'Typescript keywords',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
addWords: false,
|
|
45
|
+
name: 'w5s-names',
|
|
46
|
+
path: '../dict/names.txt',
|
|
47
|
+
description: 'Known names',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
addWords: false,
|
|
51
|
+
name: 'w5s-npm',
|
|
52
|
+
path: '../dict/npm.txt',
|
|
53
|
+
description: 'NPM packages',
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
|
|
24
57
|
const settings: AdvancedCSpellSettings = {
|
|
25
58
|
...defaultSettings,
|
|
26
59
|
name: 'W5s default settings .js',
|
|
@@ -30,39 +63,13 @@ const settings: AdvancedCSpellSettings = {
|
|
|
30
63
|
words: [],
|
|
31
64
|
flagWords: [],
|
|
32
65
|
useGitignore: true,
|
|
33
|
-
dictionaryDefinitions: [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
name
|
|
38
|
-
|
|
39
|
-
description: 'Additional file types',
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: 'w5s-fullstack',
|
|
43
|
-
path: '../dict/fullstack.txt',
|
|
44
|
-
description: 'Fullstack terms',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
addWords: false,
|
|
48
|
-
name: 'w5s-typescript',
|
|
49
|
-
path: '../dict/typescript.txt',
|
|
50
|
-
description: 'Typescript keywords',
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
addWords: false,
|
|
54
|
-
name: 'w5s-names',
|
|
55
|
-
path: '../dict/names.txt',
|
|
56
|
-
description: 'Known names',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
addWords: false,
|
|
60
|
-
name: 'w5s-npm',
|
|
61
|
-
path: '../dict/npm.txt',
|
|
62
|
-
description: 'NPM packages',
|
|
63
|
-
},
|
|
66
|
+
dictionaryDefinitions: [...toArray(defaultSettings.dictionaryDefinitions), ...dictionaryDefinitions],
|
|
67
|
+
dictionaries: [
|
|
68
|
+
...toArray(defaultSettings.dictionaries),
|
|
69
|
+
...dictionaryDefinitions
|
|
70
|
+
.map((dictionaryDefinition) => dictionaryDefinition.name)
|
|
71
|
+
.filter((name) => !['w5s-typescript'].includes(name)),
|
|
64
72
|
],
|
|
65
|
-
dictionaries: [...toArray(defaultSettings.dictionaries), 'w5s-filetypes', 'w5s-fullstack', 'w5s-names'],
|
|
66
73
|
ignoreWords: [],
|
|
67
74
|
import: toArray(defaultSettings.import).filter((dict) => !excludeImport.has(dict)),
|
|
68
75
|
ignorePaths: [
|
|
@@ -72,7 +79,6 @@ const settings: AdvancedCSpellSettings = {
|
|
|
72
79
|
// '**/.git/**',
|
|
73
80
|
'**/.vscode/**',
|
|
74
81
|
'**/*.snap',
|
|
75
|
-
'**/lib/**',
|
|
76
82
|
'**/dist/**',
|
|
77
83
|
'**/node_modules/**',
|
|
78
84
|
'**/package.json',
|