Skip to content

Commit 670cb3c

Browse files
authored
feat: Use Svelte dictionary (#3883)
1 parent da0be85 commit 670cb3c

File tree

8 files changed

+51
-54
lines changed

8 files changed

+51
-54
lines changed

packages/cspell-bundled-dicts/compatibility-words.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.
-150 Bytes
Binary file not shown.

packages/cspell-bundled-dicts/cspell-compatibility.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/cspell-bundled-dicts/cspell-default.config.js

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,22 @@ const settings = {
66
readonly: true,
77
language: 'en',
88
description: 'Default cspell configuration.',
9-
words: [],
9+
words: [
10+
'déjà',
11+
'Éric',
12+
'Español',
13+
'Français',
14+
'François',
15+
'Inglés',
16+
'Jérôme',
17+
'Kévin',
18+
'naïve',
19+
'Noël',
20+
'Orléans',
21+
'René',
22+
'Renée',
23+
'Română',
24+
],
1025
flagWords: [],
1126
maxNumberOfProblems: 10000,
1227
ignorePaths: [],
@@ -50,10 +65,6 @@ const settings = {
5065
languageId: 'typescript,typescriptreact,mdx',
5166
dictionaries: ['typescript', 'node', 'npm'],
5267
},
53-
{
54-
languageId: 'svelte',
55-
dictionaries: ['typescript', 'npm', 'html', 'html-symbol-entities', 'css', 'fonts'],
56-
},
5768
{
5869
languageId: 'javascriptreact,typescriptreact,mdx',
5970
dictionaries: ['html', 'html-symbol-entities', 'css', 'fonts'],
@@ -105,7 +116,6 @@ const settings = {
105116
],
106117
enableFiletypes: ['svelte'],
107118
import: [
108-
'./cspell-compatibility.json',
109119
'@cspell/dict-ada/cspell-ext.json',
110120
'@cspell/dict-aws/cspell-ext.json',
111121
'@cspell/dict-bash/cspell-ext.json',
@@ -145,6 +155,7 @@ const settings = {
145155
'@cspell/dict-scala/cspell-ext.json',
146156
'@cspell/dict-sql/cspell-ext.json',
147157
'@cspell/dict-software-terms/cspell-ext.json',
158+
'@cspell/dict-svelte/cspell-ext.json',
148159
'@cspell/dict-swift/cspell-ext.json',
149160
'@cspell/dict-typescript/cspell-ext.json',
150161
'@cspell/dict-vue/cspell-ext.json',

packages/cspell-bundled-dicts/cspell-default.config.ts

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,22 @@ const settings: AdvancedCSpellSettings = {
77
readonly: true,
88
language: 'en',
99
description: 'Default cspell configuration.',
10-
words: [],
10+
words: [
11+
'déjà',
12+
'Éric',
13+
'Español',
14+
'Français',
15+
'François',
16+
'Inglés',
17+
'Jérôme',
18+
'Kévin',
19+
'naïve',
20+
'Noël',
21+
'Orléans',
22+
'René',
23+
'Renée',
24+
'Română',
25+
],
1126
flagWords: [],
1227
maxNumberOfProblems: 10000,
1328
ignorePaths: [],
@@ -53,10 +68,6 @@ const settings: AdvancedCSpellSettings = {
5368
languageId: 'typescript,typescriptreact,mdx',
5469
dictionaries: ['typescript', 'node', 'npm'],
5570
},
56-
{
57-
languageId: 'svelte',
58-
dictionaries: ['typescript', 'npm', 'html', 'html-symbol-entities', 'css', 'fonts'],
59-
},
6071
{
6172
languageId: 'javascriptreact,typescriptreact,mdx',
6273
dictionaries: ['html', 'html-symbol-entities', 'css', 'fonts'],
@@ -108,7 +119,6 @@ const settings: AdvancedCSpellSettings = {
108119
],
109120
enableFiletypes: ['svelte'],
110121
import: [
111-
'./cspell-compatibility.json',
112122
'@cspell/dict-ada/cspell-ext.json',
113123
'@cspell/dict-aws/cspell-ext.json',
114124
'@cspell/dict-bash/cspell-ext.json',
@@ -148,6 +158,7 @@ const settings: AdvancedCSpellSettings = {
148158
'@cspell/dict-scala/cspell-ext.json',
149159
'@cspell/dict-sql/cspell-ext.json',
150160
'@cspell/dict-software-terms/cspell-ext.json',
161+
'@cspell/dict-svelte/cspell-ext.json',
151162
'@cspell/dict-swift/cspell-ext.json',
152163
'@cspell/dict-typescript/cspell-ext.json',
153164
'@cspell/dict-vue/cspell-ext.json',

packages/cspell-bundled-dicts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
"@cspell/dict-scala": "^3.0.0",
8585
"@cspell/dict-software-terms": "^3.0.5",
8686
"@cspell/dict-sql": "^2.0.0",
87+
"@cspell/dict-svelte": "^1.0.0",
8788
"@cspell/dict-swift": "^2.0.0",
8889
"@cspell/dict-typescript": "^3.0.1",
8990
"@cspell/dict-vue": "^3.0.0"

packages/cspell/src/__snapshots__/app.test.ts.snap

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ info
338338
info Checking: ./src/app.test.ts, File type: auto, Language: default
339339
info Checked: ./src/app.test.ts, File type: typescript, Language: en ... Issues: 0 0.00S
340340
info Config file Used: ./cspell.json
341-
info Dictionaries Used: backwards-compatibility, companies, filetypes, public-licenses, softwareTerms, workspace, aws, cryptocurrencies, en_us, fullstack, node, npm, typescript
341+
info Dictionaries Used: companies, filetypes, public-licenses, softwareTerms, workspace, aws, cryptocurrencies, en_us, fullstack, node, npm, typescript
342342
error 0.00ms
343343
error CSpell: Files checked: 1, Issues found: 0 in 0 files"
344344
`;
@@ -395,7 +395,7 @@ info
395395
info Checking: ./fixtures/issue-2998/fix-words.txt, File type: fix, Language: default
396396
info Checked: ./fixtures/issue-2998/fix-words.txt, File type: fix, Language: en ... Issues: 0 0.00S
397397
info Config file Used: ./fixtures/issue-2998/cspell.json
398-
info Dictionaries Used: backwards-compatibility, companies, filetypes, public-licenses, softwareTerms, aws, cryptocurrencies, en_us, fixture
398+
info Dictionaries Used: companies, filetypes, public-licenses, softwareTerms, aws, cryptocurrencies, en_us, fixture
399399
error 0.00ms
400400
error CSpell: Files checked: 1, Issues found: 0 in 0 files"
401401
`;
@@ -726,7 +726,6 @@ café - [ignoreWords]* From Settings \`ignoreWords\`
726726
café - [words]* From Settings \`words\`
727727
café - ada ../../node_modules/.pnpm...ell/dict-ada/dict/ada.txt
728728
café - aws* ../../node_modules/.pnpm...spell/dict-aws/aws.txt.gz
729-
café - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
730729
café - bash ../../node_modules/.pnpm...-bash/dict/bash-words.txt
731730
café - companies* ../../node_modules/.pnpm...panies/dict/companies.txt
732731
café - cpp ../../node_modules/.pnpm...spell/dict-cpp/cpp.txt.gz
@@ -766,6 +765,7 @@ café - rust ../../node_modules/.pnpm...ell/dict-rust/rust.txt.
766765
café - scala ../../node_modules/.pnpm...l/dict-scala/scala.txt.gz
767766
café - softwareTerms* ../../node_modules/.pnpm...ms/dict/softwareTerms.txt
768767
café - sql ../../node_modules/.pnpm...spell/dict-sql/sql.txt.gz
768+
café - svelte ../../node_modules/.pnpm...ct-svelte/dict/svelte.txt
769769
café - swift ../../node_modules/.pnpm...l/dict-swift/swift.txt.gz
770770
café - typescript ../../node_modules/.pnpm...cript/dict/typescript.txt
771771
café - workspace* ../../cspell-dict.txt"
@@ -780,7 +780,6 @@ hello - [ignoreWords]* From Settings \`ignoreWords\`
780780
hello - [words]* From Settings \`words\`
781781
hello - ada ../../node_modules/.pnpm...ll/dict-ada/dict/ada.txt
782782
hello - aws* ../../node_modules/.pnpm...pell/dict-aws/aws.txt.gz
783-
hello - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
784783
hello - bash ../../node_modules/.pnpm...bash/dict/bash-words.txt
785784
hello - companies* ../../node_modules/.pnpm...anies/dict/companies.txt
786785
hello * cpp ../../node_modules/.pnpm...pell/dict-cpp/cpp.txt.gz
@@ -820,6 +819,7 @@ hello - rust ../../node_modules/.pnpm...ll/dict-rust/rust.txt.gz
820819
hello - scala ../../node_modules/.pnpm.../dict-scala/scala.txt.gz
821820
hello - softwareTerms* ../../node_modules/.pnpm...s/dict/softwareTerms.txt
822821
hello - sql ../../node_modules/.pnpm...pell/dict-sql/sql.txt.gz
822+
hello - svelte ../../node_modules/.pnpm...t-svelte/dict/svelte.txt
823823
hello - swift ../../node_modules/.pnpm.../dict-swift/swift.txt.gz
824824
hello - typescript ../../node_modules/.pnpm...ript/dict/typescript.txt
825825
hello - workspace* ../../cspell-dict.txt"
@@ -834,7 +834,6 @@ hello - [ignoreWords]* From Settings \`ignoreWords\`
834834
hello - [words]* From Settings \`words\`
835835
hello - ada ../../node_modules/.pnpm...ll/dict-ada/dict/ada.txt
836836
hello - aws* ../../node_modules/.pnpm...pell/dict-aws/aws.txt.gz
837-
hello - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
838837
hello - bash ../../node_modules/.pnpm...bash/dict/bash-words.txt
839838
hello - companies* ../../node_modules/.pnpm...anies/dict/companies.txt
840839
hello * cpp ../../node_modules/.pnpm...pell/dict-cpp/cpp.txt.gz
@@ -874,6 +873,7 @@ hello - rust ../../node_modules/.pnpm...ll/dict-rust/rust.txt.gz
874873
hello - scala ../../node_modules/.pnpm.../dict-scala/scala.txt.gz
875874
hello - softwareTerms* ../../node_modules/.pnpm...s/dict/softwareTerms.txt
876875
hello - sql ../../node_modules/.pnpm...pell/dict-sql/sql.txt.gz
876+
hello - svelte ../../node_modules/.pnpm...t-svelte/dict/svelte.txt
877877
hello - swift ../../node_modules/.pnpm.../dict-swift/swift.txt.gz
878878
hello - typescript ../../node_modules/.pnpm...ript/dict/typescript.txt
879879
hello - workspace* ../../cspell-dict.txt"
@@ -1049,7 +1049,6 @@ café - [ignoreWords]* From Settings \`ignoreWords\`
10491049
café - [words]* From Settings \`words\`
10501050
café - ada ../../node_modules/.pnpm...ell/dict-ada/dict/ada.txt
10511051
café - aws* ../../node_modules/.pnpm...spell/dict-aws/aws.txt.gz
1052-
café - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
10531052
café - bash ../../node_modules/.pnpm...-bash/dict/bash-words.txt
10541053
café - companies* ../../node_modules/.pnpm...panies/dict/companies.txt
10551054
café - cpp ../../node_modules/.pnpm...spell/dict-cpp/cpp.txt.gz
@@ -1089,6 +1088,7 @@ café - rust ../../node_modules/.pnpm...ell/dict-rust/rust.txt.
10891088
café - scala ../../node_modules/.pnpm...l/dict-scala/scala.txt.gz
10901089
café - softwareTerms* ../../node_modules/.pnpm...ms/dict/softwareTerms.txt
10911090
café - sql ../../node_modules/.pnpm...spell/dict-sql/sql.txt.gz
1091+
café - svelte ../../node_modules/.pnpm...ct-svelte/dict/svelte.txt
10921092
café - swift ../../node_modules/.pnpm...l/dict-swift/swift.txt.gz
10931093
café - typescript ../../node_modules/.pnpm...cript/dict/typescript.txt
10941094
café - workspace* ../../cspell-dict.txt"
@@ -1103,7 +1103,6 @@ hello - [ignoreWords]* From Settings \`ignoreWords\`
11031103
hello - [words]* From Settings \`words\`
11041104
hello - ada ../../node_modules/.pnpm...ll/dict-ada/dict/ada.txt
11051105
hello - aws* ../../node_modules/.pnpm...pell/dict-aws/aws.txt.gz
1106-
hello - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
11071106
hello - bash ../../node_modules/.pnpm...bash/dict/bash-words.txt
11081107
hello - companies* ../../node_modules/.pnpm...anies/dict/companies.txt
11091108
hello * cpp ../../node_modules/.pnpm...pell/dict-cpp/cpp.txt.gz
@@ -1143,6 +1142,7 @@ hello - rust ../../node_modules/.pnpm...ll/dict-rust/rust.txt.gz
11431142
hello - scala ../../node_modules/.pnpm.../dict-scala/scala.txt.gz
11441143
hello - softwareTerms* ../../node_modules/.pnpm...s/dict/softwareTerms.txt
11451144
hello - sql ../../node_modules/.pnpm...pell/dict-sql/sql.txt.gz
1145+
hello - svelte ../../node_modules/.pnpm...t-svelte/dict/svelte.txt
11461146
hello - swift ../../node_modules/.pnpm.../dict-swift/swift.txt.gz
11471147
hello - typescript ../../node_modules/.pnpm...ript/dict/typescript.txt
11481148
hello - workspace* ../../cspell-dict.txt"
@@ -1157,7 +1157,6 @@ hello - [ignoreWords]* From Settings \`ignoreWords\`
11571157
hello - [words]* From Settings \`words\`
11581158
hello - ada ../../node_modules/.pnpm...ll/dict-ada/dict/ada.txt
11591159
hello - aws* ../../node_modules/.pnpm...pell/dict-aws/aws.txt.gz
1160-
hello - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
11611160
hello - bash ../../node_modules/.pnpm...bash/dict/bash-words.txt
11621161
hello - companies* ../../node_modules/.pnpm...anies/dict/companies.txt
11631162
hello * cpp ../../node_modules/.pnpm...pell/dict-cpp/cpp.txt.gz
@@ -1197,6 +1196,7 @@ hello - rust ../../node_modules/.pnpm...ll/dict-rust/rust.txt.gz
11971196
hello - scala ../../node_modules/.pnpm.../dict-scala/scala.txt.gz
11981197
hello - softwareTerms* ../../node_modules/.pnpm...s/dict/softwareTerms.txt
11991198
hello - sql ../../node_modules/.pnpm...pell/dict-sql/sql.txt.gz
1199+
hello - svelte ../../node_modules/.pnpm...t-svelte/dict/svelte.txt
12001200
hello - swift ../../node_modules/.pnpm.../dict-swift/swift.txt.gz
12011201
hello - typescript ../../node_modules/.pnpm...ript/dict/typescript.txt
12021202
hello - workspace* ../../cspell-dict.txt"
@@ -1239,7 +1239,6 @@ hello - [ignoreWords]* From Settings \`ignoreWords\`
12391239
hello - [words]* From Settings \`words\`
12401240
hello - ada ../../node_modules/.pnpm...ll/dict-ada/dict/ada.txt
12411241
hello - aws* ../../node_modules/.pnpm...pell/dict-aws/aws.txt.gz
1242-
hello - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
12431242
hello - bash ../../node_modules/.pnpm...bash/dict/bash-words.txt
12441243
hello - companies* ../../node_modules/.pnpm...anies/dict/companies.txt
12451244
hello * cpp ../../node_modules/.pnpm...pell/dict-cpp/cpp.txt.gz
@@ -1281,6 +1280,7 @@ hello - rust ../../node_modules/.pnpm...ll/dict-rust/rust.txt.gz
12811280
hello - scala ../../node_modules/.pnpm.../dict-scala/scala.txt.gz
12821281
hello - softwareTerms* ../../node_modules/.pnpm...s/dict/softwareTerms.txt
12831282
hello - sql ../../node_modules/.pnpm...pell/dict-sql/sql.txt.gz
1283+
hello - svelte ../../node_modules/.pnpm...t-svelte/dict/svelte.txt
12841284
hello - swift ../../node_modules/.pnpm.../dict-swift/swift.txt.gz
12851285
hello - typescript ../../node_modules/.pnpm...ript/dict/typescript.txt
12861286
hello - workspace* ../../cspell-dict.txt"
@@ -1295,7 +1295,6 @@ not-in-any-dictionary - [ignoreWords]* From Settings \`ignoreWords\`
12951295
not-in-any-dictionary - [words]* From Settings \`words\`
12961296
not-in-any-dictionary - ada ../../node_modul...ada/dict/ada.txt
12971297
not-in-any-dictionary - aws* ../../node_modul...t-aws/aws.txt.gz
1298-
not-in-any-dictionary - backwards-compatibi* ../cspell-bundle...ity-words.txt.gz
12991298
not-in-any-dictionary - bash ../../node_modul...t/bash-words.txt
13001299
not-in-any-dictionary - companies* ../../node_modul...ct/companies.txt
13011300
not-in-any-dictionary - cpp ../../node_modul...t-cpp/cpp.txt.gz
@@ -1335,6 +1334,7 @@ not-in-any-dictionary - rust ../../node_modul...rust/rust.txt.gz
13351334
not-in-any-dictionary - scala ../../node_modul...ala/scala.txt.gz
13361335
not-in-any-dictionary - softwareTerms* ../../node_modul...oftwareTerms.txt
13371336
not-in-any-dictionary - sql ../../node_modul...t-sql/sql.txt.gz
1337+
not-in-any-dictionary - svelte ../../node_modul.../dict/svelte.txt
13381338
not-in-any-dictionary - swift ../../node_modul...ift/swift.txt.gz
13391339
not-in-any-dictionary - typescript ../../node_modul...t/typescript.txt
13401340
not-in-any-dictionary - workspace* ../../cspell-dict.txt"

pnpm-lock.yaml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)