@cspell/cspell-bundled-dicts
Version:
Dictionaries bundled with cspell
161 lines (160 loc) • 5.95 kB
JavaScript
const settings = {
version: '0.2',
name: 'cspell default settings .js',
id: 'cspell-default-js',
readonly: true,
language: 'en',
description: 'Default cspell configuration.',
flagWords: [],
maxNumberOfProblems: 10_000,
ignorePaths: [],
allowCompoundWords: false,
dictionaryDefinitions: [],
dictionaries: ['companies', 'softwareTerms', 'public-licenses', 'filetypes'],
patterns: [
{
name: 'HTML-symbol-entity',
description: 'Matches on HTML symbols like `♣`',
pattern: /&[a-z]+;/g,
},
{
name: 'MARKDOWN-link-reference',
description: 'Markdown reference link: `[This is a link][reference]`, matches `[reference]`',
pattern: /(?<=\])\[[-\w.`'"*&;#@ ]+\]/g,
},
{
name: 'MARKDOWN-link-footer',
description: 'Markdown referenced link: `[reference]: https://www.google.com`, matches the entire reference.',
pattern: /\[[-\w.`'"*&;#@ ]+\]:( [^\s]*)?/g,
},
{
name: 'MARKDOWN-link',
description: 'Markdown link: `[link text](link)`, matches `link`',
pattern: /(?<=\]\()[^)\s]+/g,
},
{
name: 'MARKDOWN-anchor',
description: 'Markdown Anchors: `<a id="my_link"></a>`, matches `my_link`',
pattern: /(?<=<a\s+id=")[^"\s]+/g,
},
],
languageSettings: [
{
languageId: 'javascript,javascriptreact',
dictionaries: ['typescript', 'node', 'npm'],
},
{
languageId: 'typescript,typescriptreact,mdx',
dictionaries: ['typescript', 'node', 'npm'],
},
{
languageId: 'javascriptreact,typescriptreact,mdx',
dictionaries: ['html', 'html-symbol-entities', 'css', 'fonts'],
},
{
languageId: 'markdown,asciidoc',
dictionaries: ['npm', 'html', 'html-symbol-entities'],
},
{
languageId: 'html,pug,jade,php,handlebars',
dictionaries: ['html', 'fonts', 'typescript', 'css', 'npm', 'html-symbol-entities'],
},
{
languageId: 'json,jsonc',
dictionaries: ['node', 'npm'],
},
{
languageId: 'php',
dictionaries: ['php'],
},
{
languageId: 'css,less,scss',
dictionaries: ['fonts', 'css'],
},
{
languageId: 'map',
enabled: false,
},
{
languageId: 'image',
enabled: false,
},
{
languageId: 'binary',
enabled: false,
},
{
languageId: 'markdown,html,mdx',
ignoreRegExpList: ['HTML-symbol-entity'],
},
{
languageId: 'html',
ignoreRegExpList: ['href'],
},
{
languageId: 'markdown',
ignoreRegExpList: ['MARKDOWN-link-reference', 'MARKDOWN-link-footer', 'MARKDOWN-link', 'MARKDOWN-anchor'],
},
],
import: [
'/dict-ada/cspell-ext.json',
'/dict-al/cspell-ext.json',
'/dict-aws/cspell-ext.json',
'/dict-bash/cspell-ext.json',
'/dict-companies/cspell-ext.json',
'/dict-cpp/cspell-ext.json',
'/dict-cryptocurrencies/cspell-ext.json',
'/dict-csharp/cspell-ext.json',
'/dict-css/cspell-ext.json',
'/dict-dart/cspell-ext.json',
'/dict-data-science/cspell-ext.json',
'/dict-django/cspell-ext.json',
'/dict-docker/cspell-ext.json',
'/dict-dotnet/cspell-ext.json',
'/dict-elixir/cspell-ext.json',
'/dict-en_us/cspell-ext.json',
'/dict-en-common-misspellings/cspell-ext.json',
'/dict-en-gb-mit/cspell-ext.json',
'/dict-filetypes/cspell-ext.json',
'/dict-flutter/cspell-ext.json',
'/dict-fonts/cspell-ext.json',
'/dict-fsharp/cspell-ext.json',
'/dict-fullstack/cspell-ext.json',
'/dict-gaming-terms/cspell-ext.json',
'/dict-git/cspell-ext.json',
'/dict-golang/cspell-ext.json',
'/dict-google/cspell-ext.json',
'/dict-haskell/cspell-ext.json',
'/dict-html-symbol-entities/cspell-ext.json',
'/dict-html/cspell-ext.json',
'/dict-java/cspell-ext.json',
'/dict-julia/cspell-ext.json',
'/dict-k8s/cspell-ext.json',
'/dict-kotlin/cspell-ext.json',
'/dict-latex/cspell-ext.json',
'/dict-lorem-ipsum/cspell-ext.json',
'/dict-lua/cspell-ext.json',
'/dict-makefile/cspell-ext.json',
'/dict-markdown/cspell-ext.json',
'/dict-monkeyc/cspell-ext.json',
'/dict-node/cspell-ext.json',
'/dict-npm/cspell-ext.json',
'/dict-php/cspell-ext.json',
'/dict-powershell/cspell-ext.json',
'/dict-public-licenses/cspell-ext.json',
'/dict-python/cspell-ext.json',
'/dict-r/cspell-ext.json',
'/dict-ruby/cspell-ext.json',
'/dict-rust/cspell-ext.json',
'/dict-shell/cspell-ext.json',
'/dict-scala/cspell-ext.json',
'/dict-sql/cspell-ext.json',
'/dict-software-terms/cspell-ext.json',
'/dict-svelte/cspell-ext.json',
'/dict-swift/cspell-ext.json',
'/dict-terraform/cspell-ext.json',
'/dict-typescript/cspell-ext.json',
'/dict-vue/cspell-ext.json',
],
};
export default settings;