Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Use Svelte dictionary #3883

Merged
merged 3 commits into from Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 0 additions & 17 deletions packages/cspell-bundled-dicts/compatibility-words.txt

This file was deleted.

Binary file not shown.
15 changes: 0 additions & 15 deletions packages/cspell-bundled-dicts/cspell-compatibility.json

This file was deleted.

23 changes: 17 additions & 6 deletions packages/cspell-bundled-dicts/cspell-default.config.js
Expand Up @@ -6,7 +6,22 @@ const settings = {
readonly: true,
language: 'en',
description: 'Default cspell configuration.',
words: [],
words: [
'déjà',
'Éric',
'Español',
'Français',
'François',
'Inglés',
'Jérôme',
'Kévin',
'naïve',
'Noël',
'Orléans',
'René',
'Renée',
'Română',
],
flagWords: [],
maxNumberOfProblems: 10000,
ignorePaths: [],
Expand Down Expand Up @@ -50,10 +65,6 @@ const settings = {
languageId: 'typescript,typescriptreact,mdx',
dictionaries: ['typescript', 'node', 'npm'],
},
{
languageId: 'svelte',
dictionaries: ['typescript', 'npm', 'html', 'html-symbol-entities', 'css', 'fonts'],
},
{
languageId: 'javascriptreact,typescriptreact,mdx',
dictionaries: ['html', 'html-symbol-entities', 'css', 'fonts'],
Expand Down Expand Up @@ -105,7 +116,6 @@ const settings = {
],
enableFiletypes: ['svelte'],
import: [
'./cspell-compatibility.json',
'@cspell/dict-ada/cspell-ext.json',
'@cspell/dict-aws/cspell-ext.json',
'@cspell/dict-bash/cspell-ext.json',
Expand Down Expand Up @@ -145,6 +155,7 @@ const settings = {
'@cspell/dict-scala/cspell-ext.json',
'@cspell/dict-sql/cspell-ext.json',
'@cspell/dict-software-terms/cspell-ext.json',
'@cspell/dict-svelte/cspell-ext.json',
'@cspell/dict-swift/cspell-ext.json',
'@cspell/dict-typescript/cspell-ext.json',
'@cspell/dict-vue/cspell-ext.json',
Expand Down
23 changes: 17 additions & 6 deletions packages/cspell-bundled-dicts/cspell-default.config.ts
Expand Up @@ -7,7 +7,22 @@ const settings: AdvancedCSpellSettings = {
readonly: true,
language: 'en',
description: 'Default cspell configuration.',
words: [],
words: [
'déjà',
'Éric',
'Español',
'Français',
'François',
'Inglés',
'Jérôme',
'Kévin',
'naïve',
'Noël',
'Orléans',
'René',
'Renée',
'Română',
],
flagWords: [],
maxNumberOfProblems: 10000,
ignorePaths: [],
Expand Down Expand Up @@ -53,10 +68,6 @@ const settings: AdvancedCSpellSettings = {
languageId: 'typescript,typescriptreact,mdx',
dictionaries: ['typescript', 'node', 'npm'],
},
{
languageId: 'svelte',
dictionaries: ['typescript', 'npm', 'html', 'html-symbol-entities', 'css', 'fonts'],
},
{
languageId: 'javascriptreact,typescriptreact,mdx',
dictionaries: ['html', 'html-symbol-entities', 'css', 'fonts'],
Expand Down Expand Up @@ -108,7 +119,6 @@ const settings: AdvancedCSpellSettings = {
],
enableFiletypes: ['svelte'],
import: [
'./cspell-compatibility.json',
'@cspell/dict-ada/cspell-ext.json',
'@cspell/dict-aws/cspell-ext.json',
'@cspell/dict-bash/cspell-ext.json',
Expand Down Expand Up @@ -148,6 +158,7 @@ const settings: AdvancedCSpellSettings = {
'@cspell/dict-scala/cspell-ext.json',
'@cspell/dict-sql/cspell-ext.json',
'@cspell/dict-software-terms/cspell-ext.json',
'@cspell/dict-svelte/cspell-ext.json',
'@cspell/dict-swift/cspell-ext.json',
'@cspell/dict-typescript/cspell-ext.json',
'@cspell/dict-vue/cspell-ext.json',
Expand Down
1 change: 1 addition & 0 deletions packages/cspell-bundled-dicts/package.json
Expand Up @@ -84,6 +84,7 @@
"@cspell/dict-scala": "^3.0.0",
"@cspell/dict-software-terms": "^3.0.5",
"@cspell/dict-sql": "^2.0.0",
"@cspell/dict-svelte": "^1.0.0",
"@cspell/dict-swift": "^2.0.0",
"@cspell/dict-typescript": "^3.0.1",
"@cspell/dict-vue": "^3.0.0"
Expand Down
20 changes: 10 additions & 10 deletions packages/cspell/src/__snapshots__/app.test.ts.snap
Expand Up @@ -338,7 +338,7 @@ info
info Checking: ./src/app.test.ts, File type: auto, Language: default
info Checked: ./src/app.test.ts, File type: typescript, Language: en ... Issues: 0 0.00S
info Config file Used: ./cspell.json
info Dictionaries Used: backwards-compatibility, companies, filetypes, public-licenses, softwareTerms, workspace, aws, cryptocurrencies, en_us, fullstack, node, npm, typescript
info Dictionaries Used: companies, filetypes, public-licenses, softwareTerms, workspace, aws, cryptocurrencies, en_us, fullstack, node, npm, typescript
error 0.00ms
error CSpell: Files checked: 1, Issues found: 0 in 0 files"
`;
Expand Down Expand Up @@ -395,7 +395,7 @@ info
info Checking: ./fixtures/issue-2998/fix-words.txt, File type: fix, Language: default
info Checked: ./fixtures/issue-2998/fix-words.txt, File type: fix, Language: en ... Issues: 0 0.00S
info Config file Used: ./fixtures/issue-2998/cspell.json
info Dictionaries Used: backwards-compatibility, companies, filetypes, public-licenses, softwareTerms, aws, cryptocurrencies, en_us, fixture
info Dictionaries Used: companies, filetypes, public-licenses, softwareTerms, aws, cryptocurrencies, en_us, fixture
error 0.00ms
error CSpell: Files checked: 1, Issues found: 0 in 0 files"
`;
Expand Down Expand Up @@ -726,7 +726,6 @@ café - [ignoreWords]* From Settings \`ignoreWords\`
café - [words]* From Settings \`words\`
café - ada ../../node_modules/.pnpm...ell/dict-ada/dict/ada.txt
café - aws* ../../node_modules/.pnpm...spell/dict-aws/aws.txt.gz
café - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
café - bash ../../node_modules/.pnpm...-bash/dict/bash-words.txt
café - companies* ../../node_modules/.pnpm...panies/dict/companies.txt
café - cpp ../../node_modules/.pnpm...spell/dict-cpp/cpp.txt.gz
Expand Down Expand Up @@ -766,6 +765,7 @@ café - rust ../../node_modules/.pnpm...ell/dict-rust/rust.txt.
café - scala ../../node_modules/.pnpm...l/dict-scala/scala.txt.gz
café - softwareTerms* ../../node_modules/.pnpm...ms/dict/softwareTerms.txt
café - sql ../../node_modules/.pnpm...spell/dict-sql/sql.txt.gz
café - svelte ../../node_modules/.pnpm...ct-svelte/dict/svelte.txt
café - swift ../../node_modules/.pnpm...l/dict-swift/swift.txt.gz
café - typescript ../../node_modules/.pnpm...cript/dict/typescript.txt
café - workspace* ../../cspell-dict.txt"
Expand All @@ -780,7 +780,6 @@ hello - [ignoreWords]* From Settings \`ignoreWords\`
hello - [words]* From Settings \`words\`
hello - ada ../../node_modules/.pnpm...ll/dict-ada/dict/ada.txt
hello - aws* ../../node_modules/.pnpm...pell/dict-aws/aws.txt.gz
hello - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
hello - bash ../../node_modules/.pnpm...bash/dict/bash-words.txt
hello - companies* ../../node_modules/.pnpm...anies/dict/companies.txt
hello * cpp ../../node_modules/.pnpm...pell/dict-cpp/cpp.txt.gz
Expand Down Expand Up @@ -820,6 +819,7 @@ hello - rust ../../node_modules/.pnpm...ll/dict-rust/rust.txt.gz
hello - scala ../../node_modules/.pnpm.../dict-scala/scala.txt.gz
hello - softwareTerms* ../../node_modules/.pnpm...s/dict/softwareTerms.txt
hello - sql ../../node_modules/.pnpm...pell/dict-sql/sql.txt.gz
hello - svelte ../../node_modules/.pnpm...t-svelte/dict/svelte.txt
hello - swift ../../node_modules/.pnpm.../dict-swift/swift.txt.gz
hello - typescript ../../node_modules/.pnpm...ript/dict/typescript.txt
hello - workspace* ../../cspell-dict.txt"
Expand All @@ -834,7 +834,6 @@ hello - [ignoreWords]* From Settings \`ignoreWords\`
hello - [words]* From Settings \`words\`
hello - ada ../../node_modules/.pnpm...ll/dict-ada/dict/ada.txt
hello - aws* ../../node_modules/.pnpm...pell/dict-aws/aws.txt.gz
hello - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
hello - bash ../../node_modules/.pnpm...bash/dict/bash-words.txt
hello - companies* ../../node_modules/.pnpm...anies/dict/companies.txt
hello * cpp ../../node_modules/.pnpm...pell/dict-cpp/cpp.txt.gz
Expand Down Expand Up @@ -874,6 +873,7 @@ hello - rust ../../node_modules/.pnpm...ll/dict-rust/rust.txt.gz
hello - scala ../../node_modules/.pnpm.../dict-scala/scala.txt.gz
hello - softwareTerms* ../../node_modules/.pnpm...s/dict/softwareTerms.txt
hello - sql ../../node_modules/.pnpm...pell/dict-sql/sql.txt.gz
hello - svelte ../../node_modules/.pnpm...t-svelte/dict/svelte.txt
hello - swift ../../node_modules/.pnpm.../dict-swift/swift.txt.gz
hello - typescript ../../node_modules/.pnpm...ript/dict/typescript.txt
hello - workspace* ../../cspell-dict.txt"
Expand Down Expand Up @@ -1049,7 +1049,6 @@ café - [ignoreWords]* From Settings \`ignoreWords\`
café - [words]* From Settings \`words\`
café - ada ../../node_modules/.pnpm...ell/dict-ada/dict/ada.txt
café - aws* ../../node_modules/.pnpm...spell/dict-aws/aws.txt.gz
café - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
café - bash ../../node_modules/.pnpm...-bash/dict/bash-words.txt
café - companies* ../../node_modules/.pnpm...panies/dict/companies.txt
café - cpp ../../node_modules/.pnpm...spell/dict-cpp/cpp.txt.gz
Expand Down Expand Up @@ -1089,6 +1088,7 @@ café - rust ../../node_modules/.pnpm...ell/dict-rust/rust.txt.
café - scala ../../node_modules/.pnpm...l/dict-scala/scala.txt.gz
café - softwareTerms* ../../node_modules/.pnpm...ms/dict/softwareTerms.txt
café - sql ../../node_modules/.pnpm...spell/dict-sql/sql.txt.gz
café - svelte ../../node_modules/.pnpm...ct-svelte/dict/svelte.txt
café - swift ../../node_modules/.pnpm...l/dict-swift/swift.txt.gz
café - typescript ../../node_modules/.pnpm...cript/dict/typescript.txt
café - workspace* ../../cspell-dict.txt"
Expand All @@ -1103,7 +1103,6 @@ hello - [ignoreWords]* From Settings \`ignoreWords\`
hello - [words]* From Settings \`words\`
hello - ada ../../node_modules/.pnpm...ll/dict-ada/dict/ada.txt
hello - aws* ../../node_modules/.pnpm...pell/dict-aws/aws.txt.gz
hello - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
hello - bash ../../node_modules/.pnpm...bash/dict/bash-words.txt
hello - companies* ../../node_modules/.pnpm...anies/dict/companies.txt
hello * cpp ../../node_modules/.pnpm...pell/dict-cpp/cpp.txt.gz
Expand Down Expand Up @@ -1143,6 +1142,7 @@ hello - rust ../../node_modules/.pnpm...ll/dict-rust/rust.txt.gz
hello - scala ../../node_modules/.pnpm.../dict-scala/scala.txt.gz
hello - softwareTerms* ../../node_modules/.pnpm...s/dict/softwareTerms.txt
hello - sql ../../node_modules/.pnpm...pell/dict-sql/sql.txt.gz
hello - svelte ../../node_modules/.pnpm...t-svelte/dict/svelte.txt
hello - swift ../../node_modules/.pnpm.../dict-swift/swift.txt.gz
hello - typescript ../../node_modules/.pnpm...ript/dict/typescript.txt
hello - workspace* ../../cspell-dict.txt"
Expand All @@ -1157,7 +1157,6 @@ hello - [ignoreWords]* From Settings \`ignoreWords\`
hello - [words]* From Settings \`words\`
hello - ada ../../node_modules/.pnpm...ll/dict-ada/dict/ada.txt
hello - aws* ../../node_modules/.pnpm...pell/dict-aws/aws.txt.gz
hello - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
hello - bash ../../node_modules/.pnpm...bash/dict/bash-words.txt
hello - companies* ../../node_modules/.pnpm...anies/dict/companies.txt
hello * cpp ../../node_modules/.pnpm...pell/dict-cpp/cpp.txt.gz
Expand Down Expand Up @@ -1197,6 +1196,7 @@ hello - rust ../../node_modules/.pnpm...ll/dict-rust/rust.txt.gz
hello - scala ../../node_modules/.pnpm.../dict-scala/scala.txt.gz
hello - softwareTerms* ../../node_modules/.pnpm...s/dict/softwareTerms.txt
hello - sql ../../node_modules/.pnpm...pell/dict-sql/sql.txt.gz
hello - svelte ../../node_modules/.pnpm...t-svelte/dict/svelte.txt
hello - swift ../../node_modules/.pnpm.../dict-swift/swift.txt.gz
hello - typescript ../../node_modules/.pnpm...ript/dict/typescript.txt
hello - workspace* ../../cspell-dict.txt"
Expand Down Expand Up @@ -1239,7 +1239,6 @@ hello - [ignoreWords]* From Settings \`ignoreWords\`
hello - [words]* From Settings \`words\`
hello - ada ../../node_modules/.pnpm...ll/dict-ada/dict/ada.txt
hello - aws* ../../node_modules/.pnpm...pell/dict-aws/aws.txt.gz
hello - backwards-compatibi* ../cspell-bundled-dicts/compatibility-words.txt.gz
hello - bash ../../node_modules/.pnpm...bash/dict/bash-words.txt
hello - companies* ../../node_modules/.pnpm...anies/dict/companies.txt
hello * cpp ../../node_modules/.pnpm...pell/dict-cpp/cpp.txt.gz
Expand Down Expand Up @@ -1281,6 +1280,7 @@ hello - rust ../../node_modules/.pnpm...ll/dict-rust/rust.txt.gz
hello - scala ../../node_modules/.pnpm.../dict-scala/scala.txt.gz
hello - softwareTerms* ../../node_modules/.pnpm...s/dict/softwareTerms.txt
hello - sql ../../node_modules/.pnpm...pell/dict-sql/sql.txt.gz
hello - svelte ../../node_modules/.pnpm...t-svelte/dict/svelte.txt
hello - swift ../../node_modules/.pnpm.../dict-swift/swift.txt.gz
hello - typescript ../../node_modules/.pnpm...ript/dict/typescript.txt
hello - workspace* ../../cspell-dict.txt"
Expand All @@ -1295,7 +1295,6 @@ not-in-any-dictionary - [ignoreWords]* From Settings \`ignoreWords\`
not-in-any-dictionary - [words]* From Settings \`words\`
not-in-any-dictionary - ada ../../node_modul...ada/dict/ada.txt
not-in-any-dictionary - aws* ../../node_modul...t-aws/aws.txt.gz
not-in-any-dictionary - backwards-compatibi* ../cspell-bundle...ity-words.txt.gz
not-in-any-dictionary - bash ../../node_modul...t/bash-words.txt
not-in-any-dictionary - companies* ../../node_modul...ct/companies.txt
not-in-any-dictionary - cpp ../../node_modul...t-cpp/cpp.txt.gz
Expand Down Expand Up @@ -1335,6 +1334,7 @@ not-in-any-dictionary - rust ../../node_modul...rust/rust.txt.gz
not-in-any-dictionary - scala ../../node_modul...ala/scala.txt.gz
not-in-any-dictionary - softwareTerms* ../../node_modul...oftwareTerms.txt
not-in-any-dictionary - sql ../../node_modul...t-sql/sql.txt.gz
not-in-any-dictionary - svelte ../../node_modul.../dict/svelte.txt
not-in-any-dictionary - swift ../../node_modul...ift/swift.txt.gz
not-in-any-dictionary - typescript ../../node_modul...t/typescript.txt
not-in-any-dictionary - workspace* ../../cspell-dict.txt"
Expand Down
6 changes: 6 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.