UNPKG

@storm-software/cspell

Version:

A package containing CSpell keyword dictionaries and shared configurations for Storm Software.

509 lines (503 loc) 12.2 kB
// cspell-all.json var cspell_all_default = { version: "0.2", enabledLanguageIds: [ "c", "cpp", "csharp", "dart", "elixir", "fsharp", "golang", "haskell", "java", "lua", "php", "powershell", "python", "r", "ruby", "scala", "svelte", "swift", "vue" ], dictionaries: [ "ada", "bash", "companies", "cpp", "csharp", "dart", "django", "dotnet", "elixir", "en-gb", "fsharp", "gaming-terms", "golang", "haskell", "java", "latex", "lua", "php", "powershell", "python", "r", "ruby", "scala", "svelte", "swift", "vue" ], languageSettings: [ { languageId: "php", dictionaries: ["storm", "php"] }, { languageId: "html,pug,jade,php,handlebars", dictionaries: [ "storm", "html", "fonts", "typescript", "css", "npm", "html-symbol-entities" ] } ], import: [ "./cspell-recommended.json", "@cspell/dict-ada/cspell-ext.json", "@cspell/dict-bash/cspell-ext.json", "@cspell/dict-companies/cspell-ext.json", "@cspell/dict-cpp/cspell-ext.json", "@cspell/dict-csharp/cspell-ext.json", "@cspell/dict-dart/cspell-ext.json", "@cspell/dict-django/cspell-ext.json", "@cspell/dict-dotnet/cspell-ext.json", "@cspell/dict-elixir/cspell-ext.json", "@cspell/dict-en-gb/cspell-ext.json", "@cspell/dict-fsharp/cspell-ext.json", "@cspell/dict-gaming-terms/cspell-ext.json", "@cspell/dict-golang/cspell-ext.json", "@cspell/dict-haskell/cspell-ext.json", "@cspell/dict-java/cspell-ext.json", "@cspell/dict-latex/cspell-ext.json", "@cspell/dict-lua/cspell-ext.json", "@cspell/dict-php/cspell-ext.json", "@cspell/dict-powershell/cspell-ext.json", "@cspell/dict-python/cspell-ext.json", "@cspell/dict-r/cspell-ext.json", "@cspell/dict-ruby/cspell-ext.json", "@cspell/dict-scala/cspell-ext.json", "@cspell/dict-svelte/cspell-ext.json", "@cspell/dict-swift/cspell-ext.json", "@cspell/dict-vue/cspell-ext.json" ] }; // cspell-base.json var cspell_base_default = { version: "0.2", description: "Base CSpell configuration used by Storm Software.", language: "en", enabled: true, caseSensitive: false, enabledLanguageIds: [ "typescript", "javascript", "typescriptreact", "javascriptreact", "mdx", "rust", "json", "jsonc", "yaml", "css", "html", "markdown" ], maxNumberOfProblems: 1e4, dictionaries: [ "storm", "en_us", "softwareTerms", "filetypes", "fonts", "node", "npm", "sql", "rust", "fullstack", "fonts", "css", "html", "html-symbol-entities", "markdown" ], flagWords: [], useGitignore: true, ignoreRegExpList: ["GHSA-[-\\w]+"], overrides: [ { filename: "**/CHANGELOG*.md", ignoreRegExpList: ["@[-\\w]+"] }, { filename: "'**/*.md*", ignoreRegExpList: ["\\]\\([^)]+\\)"] } ], patterns: [ { name: "HTML-symbol-entity", description: "Matches on HTML symbols like `&clubs;`", 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: '/(?<=<as+id=")[^"s]+/g' } ], languageSettings: [ { languageId: "javascript,javascriptreact", dictionaries: ["storm", "typescript", "node", "npm"] }, { languageId: "typescript,typescriptreact,mdx", dictionaries: ["storm", "typescript", "node", "npm", "softwareTerms"] }, { languageId: "json,jsonc,yaml", dictionaries: ["storm", "softwareTerms", "public-licenses"] }, { languageId: "json,jsonc", dictionaries: ["storm", "node", "npm"] }, { languageId: "javascriptreact,typescriptreact,mdx", dictionaries: ["storm", "html", "html-symbol-entities", "css", "fonts"] }, { languageId: "markdown,asciidoc", dictionaries: ["storm", "npm", "html", "html-symbol-entities"] }, { languageId: "html", dictionaries: [ "storm", "html", "fonts", "typescript", "css", "npm", "html-symbol-entities" ] }, { languageId: "css,less,scss", dictionaries: ["storm", "fonts", "css"] }, { languageId: "map", enabled: false }, { languageId: "image", enabled: false }, { languageId: "binary", enabled: false }, { languageId: "markdown,html,mdx", ignoreRegExpList: ["HTML-symbol-entity", "public-licenses"] }, { languageId: "html", ignoreRegExpList: ["href"] }, { languageId: "markdown,mdx", ignoreRegExpList: ["markdown"] }, { languageId: "markdown", ignoreRegExpList: [ "MARKDOWN-link-reference", "MARKDOWN-link-footer", "MARKDOWN-link", "MARKDOWN-anchor" ] } ], import: [ "./cspell-ext.json", "@cspell/dict-css/cspell-ext.json", "@cspell/dict-en_us/cspell-ext.json", "@cspell/dict-filetypes/cspell-ext.json", "@cspell/dict-fullstack/cspell-ext.json", "@cspell/dict-html-symbol-entities/cspell-ext.json", "@cspell/dict-html/cspell-ext.json", "@cspell/dict-fonts/cspell-ext.json", "@cspell/dict-lorem-ipsum/cspell-ext.json", "@cspell/dict-markdown/cspell-ext.json", "@cspell/dict-node/cspell-ext.json", "@cspell/dict-npm/cspell-ext.json", "@cspell/dict-rust/cspell-ext.json", "@cspell/dict-sql/cspell-ext.json", "@cspell/dict-software-terms/cspell-ext.json", "@cspell/dict-typescript/cspell-ext.json" ] }; // cspell-ext.json var cspell_ext_default = { id: "storm", name: "Storm Software", description: "The Storm Software keywords Dictionary.", readonly: true, dictionaryDefinitions: [ { name: "storm", path: "./dict/storm.txt", description: "Storm Software keywords." } ], dictionaries: [], languageSettings: [ { languageId: [ "typescript", "javascript", "typescriptreact", "javascriptreact", "mdx", "rust", "json", "jsonc", "yaml", "markdown" ], locale: "*", includeRegExpList: [], ignoreRegExpList: [], patterns: [], dictionaries: ["storm"], dictionaryDefinitions: [] } ] }; // cspell-minimal.json var cspell_minimal_default = { version: "0.2", description: "Base CSpell configuration used by Storm Software.", language: "en", caseSensitive: false, dictionaries: [ "storm", "en_us", "softwareTerms", "filetypes", "node", "npm", "fullstack", "markdown" ], flagWords: [], useGitignore: true, ignoreRegExpList: [ "GHSA-[-\\w]+", "Markdown links", "Markdown code blocks", "Inline code blocks", "Link contents", "Snippet references", "Snippet references 2", "Multi-line code blocks", "HTML Tags" ], ignorePaths: [], overrides: [ { filename: "**/CHANGELOG*.md", ignoreRegExpList: ["@[-\\w]+"] }, { filename: "'**/*.md*", ignoreRegExpList: ["\\]\\([^)]+\\)"] } ], patterns: [ { name: "Markdown links", pattern: "\\((.*)\\)", description: "" }, { name: "Markdown code blocks", pattern: "/^(\\s*`{3,}).*[\\s\\S]*?^\\1/gmx", description: "Taken from the cSpell example at https://cspell.org/configuration/patterns/#verbose-regular-expressions" }, { name: "Inline code blocks", pattern: "\\`([^\\`\\r\\n]+?)\\`", description: "https://stackoverflow.com/questions/41274241/how-to-capture-inline-markdown-code-but-not-a-markdown-code-fence-with-regex" }, { name: "Link contents", pattern: "\\<a(.*)\\>", description: "" }, { name: "Snippet references", pattern: "-- snippet:(.*)", description: "" }, { name: "Snippet references 2", pattern: "\\<\\[sample:(.*)", description: "another kind of snippet reference" }, { name: "Multi-line code blocks", pattern: "/^\\s*```[\\s\\S]*?^\\s*```/gm" }, { name: "HTML Tags", pattern: "<[^>]*>", description: "Reference: https://stackoverflow.com/questions/11229831/regular-expression-to-remove-html-tags-from-a-string" } ], import: [ "./cspell-ext.json", "@cspell/dict-css/cspell-ext.json", "@cspell/dict-en_us/cspell-ext.json", "@cspell/dict-filetypes/cspell-ext.json", "@cspell/dict-fullstack/cspell-ext.json", "@cspell/dict-html-symbol-entities/cspell-ext.json", "@cspell/dict-html/cspell-ext.json", "@cspell/dict-fonts/cspell-ext.json", "@cspell/dict-lorem-ipsum/cspell-ext.json", "@cspell/dict-markdown/cspell-ext.json", "@cspell/dict-node/cspell-ext.json", "@cspell/dict-npm/cspell-ext.json", "@cspell/dict-rust/cspell-ext.json", "@cspell/dict-sql/cspell-ext.json", "@cspell/dict-software-terms/cspell-ext.json", "@cspell/dict-typescript/cspell-ext.json" ] }; // cspell-recommended.json var cspell_recommended_default = { version: "0.2", enabledLanguageIds: [ "handlebars", "dockerfile", "terraform", "tfvars", "commit-msg" ], dictionaries: [ "storm", "public-licenses", "filetypes", "cryptocurrencies", "docker", "git", "k8s", "aws", "terraform" ], languageSettings: [ { languageId: "typescript,typescriptreact,mdx", dictionaries: [ "storm", "typescript", "node", "npm", "aws", "softwareTerms" ] }, { languageId: "json,jsonc,yaml", dictionaries: [ "storm", "aws", "k8s", "softwareTerms", "public-licenses" ] }, { languageId: "json,jsonc", dictionaries: ["storm", "node", "npm", "aws"] }, { languageId: "dockerfile", dictionaries: ["storm", "aws", "k8s", "docker"] }, { languageId: "json,jsonc", dictionaries: ["storm", "node", "npm", "aws"] } ], import: [ "./cspell-base.json", "@cspell/dict-aws/cspell-ext.json", "@cspell/dict-cryptocurrencies/cspell-ext.json", "@cspell/dict-docker/cspell-ext.json", "@cspell/dict-en_us/cspell-ext.json", "@cspell/dict-en-common-misspellings/cspell-ext.json", "@cspell/dict-filetypes/cspell-ext.json", "@cspell/dict-fonts/cspell-ext.json", "@cspell/dict-fullstack/cspell-ext.json", "@cspell/dict-git/cspell-ext.json", "@cspell/dict-html-symbol-entities/cspell-ext.json", "@cspell/dict-html/cspell-ext.json", "@cspell/dict-k8s/cspell-ext.json", "@cspell/dict-lorem-ipsum/cspell-ext.json", "@cspell/dict-markdown/cspell-ext.json", "@cspell/dict-makefile/cspell-ext.json", "@cspell/dict-node/cspell-ext.json", "@cspell/dict-npm/cspell-ext.json", "@cspell/dict-public-licenses/cspell-ext.json", "@cspell/dict-rust/cspell-ext.json", "@cspell/dict-sql/cspell-ext.json", "@cspell/dict-software-terms/cspell-ext.json", "@cspell/dict-typescript/cspell-ext.json" ] }; // index.ts var configs = { base: cspell_base_default, minimal: cspell_minimal_default, recommended: cspell_recommended_default, ext: cspell_ext_default, all: cspell_all_default }; export { configs };