@storm-software/cspell 0.45.91 → 0.46.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/dist/index.js CHANGED
@@ -69,7 +69,7 @@ var cspell_all_default = {
69
69
  }
70
70
  ],
71
71
  import: [
72
- "./cspell-recommended.json",
72
+ "./cspell-extra.json",
73
73
  "@cspell/dict-ada/cspell-ext.json",
74
74
  "@cspell/dict-bash/cspell-ext.json",
75
75
  "@cspell/dict-companies/cspell-ext.json",
@@ -99,109 +99,102 @@ var cspell_all_default = {
99
99
  ]
100
100
  };
101
101
 
102
- // cspell-base.json
103
- var cspell_base_default = {
102
+ // cspell-ext.json
103
+ var cspell_ext_default = {
104
+ id: "storm",
105
+ name: "Storm Software",
106
+ description: "The Storm Software keywords Dictionary.",
107
+ readonly: true,
108
+ dictionaryDefinitions: [
109
+ {
110
+ name: "storm",
111
+ path: "./dict/storm.txt",
112
+ description: "Storm Software keywords."
113
+ }
114
+ ],
115
+ dictionaries: [],
116
+ languageSettings: [
117
+ {
118
+ languageId: [
119
+ "typescript",
120
+ "javascript",
121
+ "typescriptreact",
122
+ "javascriptreact",
123
+ "mdx",
124
+ "rust",
125
+ "json",
126
+ "jsonc",
127
+ "yaml",
128
+ "markdown"
129
+ ],
130
+ locale: "*",
131
+ includeRegExpList: [],
132
+ ignoreRegExpList: [],
133
+ patterns: [],
134
+ dictionaries: ["storm"],
135
+ dictionaryDefinitions: []
136
+ }
137
+ ]
138
+ };
139
+
140
+ // cspell-extra.json
141
+ var cspell_extra_default = {
142
+ $schema: "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
104
143
  version: "0.2",
105
- description: "Base CSpell configuration used by Storm Software.",
106
- language: "en",
107
- enabled: true,
108
- caseSensitive: false,
109
144
  enabledLanguageIds: [
110
- "typescript",
111
- "javascript",
112
- "typescriptreact",
113
- "javascriptreact",
114
- "mdx",
115
- "rust",
116
- "json",
117
- "jsonc",
118
- "yaml",
145
+ "handlebars",
146
+ "dockerfile",
147
+ "terraform",
148
+ "tfvars",
149
+ "commit-msg",
119
150
  "css",
120
151
  "html",
121
152
  "markdown"
122
153
  ],
123
- maxNumberOfProblems: 1e4,
124
154
  dictionaries: [
125
- "storm",
126
- "en_us",
127
- "softwareTerms",
128
- "filetypes",
129
- "fonts",
130
- "node",
131
- "npm",
132
- "sql",
133
- "rust",
134
- "fullstack",
135
- "fonts",
155
+ "cryptocurrencies",
156
+ "docker",
157
+ "k8s",
158
+ "aws",
159
+ "terraform",
160
+ "makefile",
136
161
  "css",
137
162
  "html",
138
- "html-symbol-entities",
139
- "markdown"
140
- ],
141
- flagWords: [],
142
- useGitignore: true,
143
- ignoreRegExpList: ["GHSA-[-\\w]+"],
144
- overrides: [
145
- {
146
- filename: "**/CHANGELOG*.md",
147
- ignoreRegExpList: ["@[-\\w]+"]
148
- },
149
- {
150
- filename: "'**/*.md*",
151
- ignoreRegExpList: ["\\]\\([^)]+\\)"]
152
- }
163
+ "html-symbol-entities"
153
164
  ],
154
165
  patterns: [
155
166
  {
156
- name: "HTML-symbol-entity",
167
+ name: "Html symbol entity",
157
168
  description: "Matches on HTML symbols like `♣`",
158
169
  pattern: "/&[a-z]+;/g"
159
170
  },
160
171
  {
161
- name: "MARKDOWN-link-reference",
162
- description: "Markdown reference link: `[This is a link][reference]`, matches `[reference]`",
163
- pattern: "/(?<=])[[-w.`'\"*&;#@ ]+]/g"
164
- },
165
- {
166
- name: "MARKDOWN-link-footer",
167
- description: "Markdown referenced link: `[reference]: https://www.google.com`, matches the entire reference.",
168
- pattern: "/[[-w.`'\"*&;#@ ]+]:( [^s]*)?/g"
169
- },
170
- {
171
- name: "MARKDOWN-link",
172
- description: "Markdown link: `[link text](link)`, matches `link`",
173
- pattern: "/(?<=]()[^)s]+/g"
174
- },
175
- {
176
- name: "MARKDOWN-anchor",
177
- description: 'Markdown Anchors: `<a id="my_link"></a>`, matches `my_link`',
178
- pattern: '/(?<=<as+id=")[^"s]+/g'
172
+ name: "Html Tags",
173
+ pattern: "<[^>]*>",
174
+ description: "Reference: https://stackoverflow.com/questions/11229831/regular-expression-to-remove-html-tags-from-a-string"
179
175
  }
180
176
  ],
181
177
  languageSettings: [
182
- {
183
- languageId: "javascript,javascriptreact",
184
- dictionaries: ["storm", "typescript", "node", "npm"]
185
- },
186
- {
187
- languageId: "typescript,typescriptreact,mdx",
188
- dictionaries: ["storm", "typescript", "node", "npm", "softwareTerms"]
189
- },
190
- {
191
- languageId: "json,jsonc,yaml",
192
- dictionaries: ["storm", "softwareTerms", "public-licenses"]
193
- },
194
- {
195
- languageId: "json,jsonc",
196
- dictionaries: ["storm", "node", "npm"]
197
- },
198
178
  {
199
179
  languageId: "javascriptreact,typescriptreact,mdx",
200
- dictionaries: ["storm", "html", "html-symbol-entities", "css", "fonts"]
180
+ dictionaries: [
181
+ "storm",
182
+ "html",
183
+ "html-symbol-entities",
184
+ "css",
185
+ "fonts",
186
+ "softwareTerms"
187
+ ]
201
188
  },
202
189
  {
203
190
  languageId: "markdown,asciidoc",
204
- dictionaries: ["storm", "npm", "html", "html-symbol-entities"]
191
+ dictionaries: [
192
+ "storm",
193
+ "npm",
194
+ "html",
195
+ "html-symbol-entities",
196
+ "softwareTerms"
197
+ ]
205
198
  },
206
199
  {
207
200
  languageId: "html",
@@ -219,128 +212,121 @@ var cspell_base_default = {
219
212
  languageId: "css,less,scss",
220
213
  dictionaries: ["storm", "fonts", "css"]
221
214
  },
222
- {
223
- languageId: "map",
224
- enabled: false
225
- },
226
- {
227
- languageId: "image",
228
- enabled: false
229
- },
230
- {
231
- languageId: "binary",
232
- enabled: false
233
- },
234
215
  {
235
216
  languageId: "markdown,html,mdx",
236
- ignoreRegExpList: ["HTML-symbol-entity", "public-licenses"]
217
+ ignoreRegExpList: ["Html symbol entity", "public-licenses"]
237
218
  },
238
219
  {
239
220
  languageId: "html",
240
221
  ignoreRegExpList: ["href"]
241
222
  },
242
- {
243
- languageId: "markdown,mdx",
244
- ignoreRegExpList: ["markdown"]
245
- },
246
223
  {
247
224
  languageId: "markdown",
248
225
  ignoreRegExpList: [
249
- "MARKDOWN-link-reference",
250
- "MARKDOWN-link-footer",
251
- "MARKDOWN-link",
252
- "MARKDOWN-anchor"
226
+ "Markdown link reference",
227
+ "Markdown link footer",
228
+ "Markdown link",
229
+ "Markdown anchor",
230
+ "Markdown code blocks",
231
+ "Inline code blocks",
232
+ "Link contents",
233
+ "Snippet references",
234
+ "Snippet references 2",
235
+ "Multi-line code blocks",
236
+ "Html Tags"
253
237
  ]
254
238
  }
255
239
  ],
256
240
  import: [
257
- "./cspell-ext.json",
258
- "@cspell/dict-css/cspell-ext.json",
259
- "@cspell/dict-en_us/cspell-ext.json",
260
- "@cspell/dict-filetypes/cspell-ext.json",
261
- "@cspell/dict-fullstack/cspell-ext.json",
241
+ "./cspell-recommended.json",
242
+ "@cspell/dict-aws/cspell-ext.json",
243
+ "@cspell/dict-cryptocurrencies/cspell-ext.json",
244
+ "@cspell/dict-docker/cspell-ext.json",
245
+ "@cspell/dict-en-common-misspellings/cspell-ext.json",
246
+ "@cspell/dict-k8s/cspell-ext.json",
247
+ "@cspell/dict-makefile/cspell-ext.json",
248
+ "@cspell/dict-terraform/cspell-ext.json",
249
+ "@cspell/dict-tfvars/cspell-ext.json",
250
+ "@cspell/dict-commit-msg/cspell-ext.json",
262
251
  "@cspell/dict-html-symbol-entities/cspell-ext.json",
263
252
  "@cspell/dict-html/cspell-ext.json",
264
- "@cspell/dict-fonts/cspell-ext.json",
265
- "@cspell/dict-lorem-ipsum/cspell-ext.json",
266
- "@cspell/dict-markdown/cspell-ext.json",
267
- "@cspell/dict-node/cspell-ext.json",
268
- "@cspell/dict-npm/cspell-ext.json",
269
- "@cspell/dict-rust/cspell-ext.json",
270
- "@cspell/dict-sql/cspell-ext.json",
271
- "@cspell/dict-software-terms/cspell-ext.json",
272
- "@cspell/dict-typescript/cspell-ext.json"
273
- ]
274
- };
275
-
276
- // cspell-ext.json
277
- var cspell_ext_default = {
278
- id: "storm",
279
- name: "Storm Software",
280
- description: "The Storm Software keywords Dictionary.",
281
- readonly: true,
282
- dictionaryDefinitions: [
283
- {
284
- name: "storm",
285
- path: "./dict/storm.txt",
286
- description: "Storm Software keywords."
287
- }
288
- ],
289
- dictionaries: [],
290
- languageSettings: [
291
- {
292
- languageId: [
293
- "typescript",
294
- "javascript",
295
- "typescriptreact",
296
- "javascriptreact",
297
- "mdx",
298
- "rust",
299
- "json",
300
- "jsonc",
301
- "yaml",
302
- "markdown"
303
- ],
304
- locale: "*",
305
- includeRegExpList: [],
306
- ignoreRegExpList: [],
307
- patterns: [],
308
- dictionaries: ["storm"],
309
- dictionaryDefinitions: []
310
- }
253
+ "@cspell/dict-css/cspell-ext.json"
311
254
  ]
312
255
  };
313
256
 
314
257
  // cspell-minimal.json
315
258
  var cspell_minimal_default = {
259
+ $schema: "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
316
260
  version: "0.2",
317
- description: "Base CSpell configuration used by Storm Software.",
261
+ description: "The minimal CSpell configuration used by Storm Software.",
262
+ enabled: true,
318
263
  language: "en",
319
264
  caseSensitive: false,
265
+ useGitignore: true,
266
+ ignoreRandomStrings: true,
267
+ allowCompoundWords: true,
268
+ enabledLanguageIds: [
269
+ "typescript",
270
+ "javascript",
271
+ "typescriptreact",
272
+ "javascriptreact",
273
+ "json",
274
+ "jsonc",
275
+ "yaml"
276
+ ],
277
+ maxNumberOfProblems: 1e4,
320
278
  dictionaries: [
321
279
  "storm",
322
280
  "en_us",
323
281
  "softwareTerms",
324
282
  "filetypes",
283
+ "git",
325
284
  "node",
326
285
  "npm",
327
- "fullstack",
328
- "markdown"
286
+ "typescript"
329
287
  ],
330
- flagWords: [],
331
- useGitignore: true,
332
- ignoreRegExpList: [
333
- "GHSA-[-\\w]+",
334
- "Markdown links",
335
- "Markdown code blocks",
336
- "Inline code blocks",
337
- "Link contents",
338
- "Snippet references",
339
- "Snippet references 2",
340
- "Multi-line code blocks",
341
- "HTML Tags"
288
+ languageSettings: [
289
+ {
290
+ languageId: "javascript,javascriptreact,typescript,typescriptreact",
291
+ dictionaries: ["storm", "typescript", "node", "npm", "softwareTerms"]
292
+ },
293
+ {
294
+ languageId: "json,jsonc,yaml",
295
+ dictionaries: ["storm", "softwareTerms"]
296
+ },
297
+ {
298
+ languageId: "json,jsonc",
299
+ dictionaries: ["storm", "node", "npm"]
300
+ }
301
+ ],
302
+ import: [
303
+ "./cspell-ext.json",
304
+ "@cspell/dict-en_us/cspell-ext.json",
305
+ "@cspell/dict-filetypes/cspell-ext.json",
306
+ "@cspell/dict-git/cspell-ext.json",
307
+ "@cspell/dict-node/cspell-ext.json",
308
+ "@cspell/dict-npm/cspell-ext.json",
309
+ "@cspell/dict-software-terms/cspell-ext.json",
310
+ "@cspell/dict-typescript/cspell-ext.json"
311
+ ],
312
+ ignorePaths: ["patches", "package-lock.json", "pnpm-lock.yaml", ".vscode"]
313
+ };
314
+
315
+ // cspell-recommended.json
316
+ var cspell_recommended_default = {
317
+ $schema: "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
318
+ version: "0.2",
319
+ description: "The recommended CSpell configuration used by Storm Software.",
320
+ enabledLanguageIds: ["sql", "mdx", "rust", "markdown"],
321
+ dictionaries: [
322
+ "fullstack",
323
+ "rust",
324
+ "sql",
325
+ "lorem-ipsum",
326
+ "markdown",
327
+ "public-licenses",
328
+ "fonts"
342
329
  ],
343
- ignorePaths: [],
344
330
  overrides: [
345
331
  {
346
332
  filename: "**/CHANGELOG*.md",
@@ -353,9 +339,24 @@ var cspell_minimal_default = {
353
339
  ],
354
340
  patterns: [
355
341
  {
356
- name: "Markdown links",
357
- pattern: "\\((.*)\\)",
358
- description: ""
342
+ name: "Markdown link reference",
343
+ description: "Markdown reference link: `[This is a link][reference]`, matches `[reference]`",
344
+ pattern: "/(?<=])[[-w.`'\"*&;#@ ]+]/g"
345
+ },
346
+ {
347
+ name: "Markdown link footer",
348
+ description: "Markdown referenced link: `[reference]: https://www.google.com`, matches the entire reference.",
349
+ pattern: "/[[-w.`'\"*&;#@ ]+]:( [^s]*)?/g"
350
+ },
351
+ {
352
+ name: "Markdown link",
353
+ description: "Markdown link: `[link text](link)`, matches `link`",
354
+ pattern: "/(?<=]()[^)s]+/g"
355
+ },
356
+ {
357
+ name: "Markdown anchor",
358
+ description: 'Markdown Anchors: `<a id="my_link"></a>`, matches `my_link`',
359
+ pattern: '/(?<=<as+id=")[^"s]+/g'
359
360
  },
360
361
  {
361
362
  name: "Markdown code blocks",
@@ -385,122 +386,90 @@ var cspell_minimal_default = {
385
386
  {
386
387
  name: "Multi-line code blocks",
387
388
  pattern: "/^\\s*```[\\s\\S]*?^\\s*```/gm"
388
- },
389
- {
390
- name: "HTML Tags",
391
- pattern: "<[^>]*>",
392
- description: "Reference: https://stackoverflow.com/questions/11229831/regular-expression-to-remove-html-tags-from-a-string"
393
389
  }
394
390
  ],
395
- import: [
396
- "./cspell-ext.json",
397
- "@cspell/dict-css/cspell-ext.json",
398
- "@cspell/dict-en_us/cspell-ext.json",
399
- "@cspell/dict-filetypes/cspell-ext.json",
400
- "@cspell/dict-fullstack/cspell-ext.json",
401
- "@cspell/dict-html-symbol-entities/cspell-ext.json",
402
- "@cspell/dict-html/cspell-ext.json",
403
- "@cspell/dict-fonts/cspell-ext.json",
404
- "@cspell/dict-lorem-ipsum/cspell-ext.json",
405
- "@cspell/dict-markdown/cspell-ext.json",
406
- "@cspell/dict-node/cspell-ext.json",
407
- "@cspell/dict-npm/cspell-ext.json",
408
- "@cspell/dict-rust/cspell-ext.json",
409
- "@cspell/dict-sql/cspell-ext.json",
410
- "@cspell/dict-software-terms/cspell-ext.json",
411
- "@cspell/dict-typescript/cspell-ext.json"
412
- ]
413
- };
414
-
415
- // cspell-recommended.json
416
- var cspell_recommended_default = {
417
- version: "0.2",
418
- enabledLanguageIds: [
419
- "handlebars",
420
- "dockerfile",
421
- "terraform",
422
- "tfvars",
423
- "commit-msg"
424
- ],
425
- dictionaries: [
426
- "storm",
427
- "public-licenses",
428
- "filetypes",
429
- "cryptocurrencies",
430
- "docker",
431
- "git",
432
- "k8s",
433
- "aws",
434
- "terraform"
435
- ],
436
391
  languageSettings: [
437
392
  {
438
- languageId: "typescript,typescriptreact,mdx",
439
- dictionaries: [
440
- "storm",
441
- "typescript",
442
- "node",
443
- "npm",
444
- "aws",
445
- "softwareTerms"
446
- ]
393
+ languageId: "json,jsonc,yaml",
394
+ dictionaries: ["storm", "softwareTerms", "public-licenses"]
447
395
  },
448
396
  {
449
- languageId: "json,jsonc,yaml",
397
+ languageId: "markdown,mdx",
450
398
  dictionaries: [
451
399
  "storm",
452
- "aws",
453
- "k8s",
400
+ "npm",
401
+ "markdown",
454
402
  "softwareTerms",
455
403
  "public-licenses"
456
404
  ]
457
405
  },
458
406
  {
459
- languageId: "json,jsonc",
460
- dictionaries: ["storm", "node", "npm", "aws"]
407
+ languageId: "map",
408
+ enabled: false
461
409
  },
462
410
  {
463
- languageId: "dockerfile",
464
- dictionaries: ["storm", "aws", "k8s", "docker"]
411
+ languageId: "image",
412
+ enabled: false
465
413
  },
466
414
  {
467
- languageId: "json,jsonc",
468
- dictionaries: ["storm", "node", "npm", "aws"]
415
+ languageId: "binary",
416
+ enabled: false
417
+ },
418
+ {
419
+ languageId: "markdown",
420
+ ignoreRegExpList: [
421
+ "Markdown link reference",
422
+ "Markdown link footer",
423
+ "Markdown link",
424
+ "Markdown anchor",
425
+ "Markdown code blocks",
426
+ "Inline code blocks",
427
+ "Link contents",
428
+ "Snippet references",
429
+ "Snippet references 2",
430
+ "Multi-line code blocks"
431
+ ]
469
432
  }
470
433
  ],
471
434
  import: [
472
- "./cspell-base.json",
473
- "@cspell/dict-aws/cspell-ext.json",
474
- "@cspell/dict-cryptocurrencies/cspell-ext.json",
475
- "@cspell/dict-docker/cspell-ext.json",
476
- "@cspell/dict-en_us/cspell-ext.json",
477
- "@cspell/dict-en-common-misspellings/cspell-ext.json",
478
- "@cspell/dict-filetypes/cspell-ext.json",
479
- "@cspell/dict-fonts/cspell-ext.json",
435
+ "./cspell-ext.json",
436
+ "./cspell-minimal.json",
480
437
  "@cspell/dict-fullstack/cspell-ext.json",
481
- "@cspell/dict-git/cspell-ext.json",
482
- "@cspell/dict-html-symbol-entities/cspell-ext.json",
483
- "@cspell/dict-html/cspell-ext.json",
484
- "@cspell/dict-k8s/cspell-ext.json",
485
- "@cspell/dict-lorem-ipsum/cspell-ext.json",
486
438
  "@cspell/dict-markdown/cspell-ext.json",
487
- "@cspell/dict-makefile/cspell-ext.json",
488
- "@cspell/dict-node/cspell-ext.json",
489
- "@cspell/dict-npm/cspell-ext.json",
490
- "@cspell/dict-public-licenses/cspell-ext.json",
491
439
  "@cspell/dict-rust/cspell-ext.json",
492
- "@cspell/dict-sql/cspell-ext.json",
493
- "@cspell/dict-software-terms/cspell-ext.json",
494
- "@cspell/dict-typescript/cspell-ext.json"
440
+ "@cspell/dict-lorem-ipsum/cspell-ext.json",
441
+ "@cspell/dict-public-licenses/cspell-ext.json",
442
+ "@cspell/dict-fonts/cspell-ext.json",
443
+ "@cspell/dict-sql/cspell-ext.json"
444
+ ],
445
+ ignoreRegExpList: [
446
+ "usernames\\s*=\\s*\\{[^}]*\\}",
447
+ 'name:\\s*"[^"]*"',
448
+ 'description:\\s*"[^"]*"',
449
+ 'avatar:\\s*"[^"]*"',
450
+ 'twitter:\\s*"[^"]*"',
451
+ 'image:\\s*"[^"]*"',
452
+ 'privateKeyPass:\\s*"[^"]*"',
453
+ 'encPrivateKeyPass:\\s*"[^"]*"',
454
+ '"x":\\s*"[^"]*"',
455
+ "\\[@[^\\]]+\\]\\([^\\)]+\\)",
456
+ "\\[[^\\]]+\\]\\(https://github\\.com/\\w+\\)",
457
+ "\\[[^\\]]+\\]\\(https://x\\.com/\\w+\\)",
458
+ "@[a-zA-Z0-9-_]+",
459
+ "price_[a-zA-Z0-9-_]+",
460
+ "sub_[a-zA-Z0-9-_]+",
461
+ "%[0-9A-Fa-f]{2}(?:%[0-9A-Fa-f]{2})*",
462
+ "toBe\\([^\\)]*\\)",
463
+ "GHSA-[-\\w]+"
495
464
  ]
496
465
  };
497
466
 
498
467
  // index.ts
499
468
  var configs = {
500
- base: cspell_base_default,
469
+ ext: cspell_ext_default,
501
470
  minimal: cspell_minimal_default,
502
471
  recommended: cspell_recommended_default,
503
- ext: cspell_ext_default,
472
+ extra: cspell_extra_default,
504
473
  all: cspell_all_default
505
474
  };
506
475
  export {