@kitschpatrol/cspell-config 7.5.0 → 7.5.2
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/bin/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"cosmiconfig";import"cosmiconfig-typescript-loader";import{execa as e}from"execa";import t from"fs-extra";import n,{constants as r}from"node:fs";import i from"node:path";import{PassThrough as a,Transform as o}from"node:stream";import{fileURLToPath as s}from"node:url";import{packageUp as c,packageUpSync as l}from"package-up";import u from"picocolors";import d from"yargs";import{hideBin as f}from"yargs/helpers";import p from"@pinojs/json-colorizer";import m from"decircular";import h from"deepmerge";import ee from"json-stringify-pretty-compact";import{findWorkspacesRoot as g}from"find-workspaces";import _,{access as v}from"node:fs/promises";import{stripVTControlCharacters as y}from"node:util";import{getDefaultConfigLoader as b,resolveConfigFileImports as x}from"cspell-lib";import{lint as S}from"cspell";var C=`7.5.
|
|
2
|
+
import"cosmiconfig";import"cosmiconfig-typescript-loader";import{execa as e}from"execa";import t from"fs-extra";import n,{constants as r}from"node:fs";import i from"node:path";import{PassThrough as a,Transform as o}from"node:stream";import{fileURLToPath as s}from"node:url";import{packageUp as c,packageUpSync as l}from"package-up";import u from"picocolors";import d from"yargs";import{hideBin as f}from"yargs/helpers";import p from"@pinojs/json-colorizer";import m from"decircular";import h from"deepmerge";import ee from"json-stringify-pretty-compact";import{findWorkspacesRoot as g}from"find-workspaces";import _,{access as v}from"node:fs/promises";import{stripVTControlCharacters as y}from"node:util";import{getDefaultConfigLoader as b,resolveConfigFileImports as x}from"cspell-lib";import{lint as S}from"cspell";var C=`7.5.2`;function w(e){return e instanceof Error&&`exitCode`in e&&typeof e.exitCode==`number`}function T(e){return p(ee(m(e),{indent:2,replacer(e,t){return typeof t==`function`?t.name:t}}),{colors:{BRACKET:`gray`}})}const te=(e,t,n)=>{let r=[...e];for(let[i,a]of t.entries())r[i]===void 0?r[i]=n.cloneUnlessOtherwiseSpecified(a,n):n.isMergeableObject(a)?r[i]=E(e[i],a,n):e.includes(a)||r.push(a);return r};function E(e,t,n={arrayMerge:te}){return h(e,t,n)}function D(){let e=l();if(e===void 0)throw Error(`No package.json found.`);return i.dirname(e)}function O(){let e=g();return e===null?D():i.resolve(e.location)}function k(e){if(e===`workspace-root`)return O();if(e===`package-dir`)return D();if(typeof e==`string`){if(!t.pathExistsSync(e))throw Error(`Custom cwd directory does not exist: ${e}`);return e}return process.cwd()}async function A(e,t){try{let{default:n}=await import(`prettier`),r=await n.resolveConfig(e),i=await n.format(t,{filepath:e,...r});await _.writeFile(e,i,`utf8`)}catch{console.warn(`Skipped formatting ${e} since Prettier is not installed.`)}}async function j(e){try{await A(e,await _.readFile(e,`utf8`))}catch{}}const M=/\r?\n/;function N(e){return new o({transform(t,n,r){let i=t.toString().split(M).filter(t=>t.trim()!==``&&!e(y(t))).join(`
|
|
3
3
|
`);this.push(i+`
|
|
4
4
|
`),r()}})}function P(e,t){return new o({transform(n,r,i){let a=n.toString().split(M).filter(e=>e.trim().length>0).map(n=>`${e?t===void 0?e:u[t](e):``} ${n}\n`).join(``);this.push(a),i()}})}async function F(e){let t=[];return new Promise((n,r)=>{e.on(`data`,e=>t.push(e)),e.on(`error`,e=>{r(e)}),e.on(`end`,()=>{n(Buffer.concat(t).toString(`utf8`))})})}function I(e,t){return t===1?e:e+`s`}async function L(e,t,n,r,i){let a=1,o;if(r.logPrefix===void 0)o=e;else{let t=P(r.logPrefix,r.logColor);t.pipe(e),o=t}i&&o.write(u.bold(`Running: "${r.name}() with Positional arguments: ${String(t)} and Option flags: ${String(n)}"`));try{a=await r.execute(o,t,n)}catch(e){console.error(String(e)),a=1}return a}async function R(t,n,r,i,o){let s=1,c;if(i.logPrefix===void 0)c=t;else{let e=P(i.logPrefix,i.logColor);e.pipe(t),c=e}let l=i.subcommands??[],u=[...i.receivePositionalArguments?n:[],...i.positionalArguments??[]],d=[...i.receiveOptionFlags?r:[],...i.optionFlags??[]],f=[...l,...d,...u],p=k(i.cwdOverride);o&&c.write(`Running: "${i.name} ${f.join(` `)}"`);let m=i.prettyJsonOutput?new a:c;try{let t=e(i.name,f,{cwd:p,env:{...process.env.NO_COLOR===void 0?{FORCE_COLOR:`true`}:{}},preferLocal:!0,reject:!1,stdin:`inherit`});if(i.outputFilter){let e=N(i.outputFilter),n=N(i.outputFilter);t.stdout.pipe(e).pipe(m,{end:!1}),t.stderr.pipe(n).pipe(m,{end:!1})}else t.stdout.pipe(m,{end:!1}),t.stderr.pipe(m,{end:!1});if(await t,i.prettyJsonOutput){m.end();let e=await F(m),t=T(JSON.parse(e)).split(`
|
|
5
5
|
`);for(let e of t)c.write(`${e}\n`)}s=t.exitCode??1}catch(e){console.error(`${i.name} failed with error:`),console.error(e),w(e)&&(s=typeof e.exitCode==`number`?e.exitCode:1)}return s}function z(e){return`execute`in e}const B=/^ksc-/;function V(e){return e.replace(B,``)}function H(e){return e===void 0||e.length===0?[]:e.flatMap(e=>e.split(`,`)).map(e=>V(e.trim()))}function U(e){return e.option(`skip`,{array:!0,describe:`Tool names to skip (with or without "ksc-" prefix).`,type:`string`})}async function W(e,t,n,r,i,a,o){let s=o??[],c=[],l=[];for(let e of r)s.length>0&&s.includes(V(e.name))?l.push(e):c.push(e);if(s.length>0){let t=new Set(l.map(e=>V(e.name))),n=s.filter(e=>!t.has(e));if(n.length>0){let t=r.map(e=>V(e.name)).join(`, `);e.write(`⚠️ ${u.yellow(`Unrecognized --skip ${I(`value`,n.length)}: ${n.join(`, `)}. Available: ${t}`)}\n`)}}let d=[];for(let r of c){let a=await(z(r)?L(e,t,n,r,i):R(e,t,n,r,i));d.push({exitCode:a,name:r.name})}let f=r.length;if(l.length>0){let t=l.map(({name:e})=>e);e.write(`⏭️ ${u.dim(u.bold(`${t.length} / ${f} ${I(`Command`,t.length)} Skipped:`))} ${u.dim(t.join(`, `))}\n`)}if(a){let t=d.filter(({exitCode:e})=>e===0).map(({name:e})=>e),n=d.filter(({exitCode:e})=>e!==0).map(({name:e})=>e);t.length>0&&e.write(`✅ ${u.green(u.bold(`${t.length} / ${f} ${I(`Command`,t.length)} Succeeded:`))} ${u.green(t.join(`, `))}\n`),n.length>0&&e.write(`❌ ${u.red(u.bold(`${n.length} / ${f} ${I(`Command`,n.length)} Failed:`))} ${u.red(n.join(`, `))}\n`)}return+!d.every(({exitCode:e})=>e===0)}async function G(e,r,a,o){let l=await c();if(l===void 0)throw Error("The `init` command must be used in a directory with a package.json file");let u=await c({cwd:s(import.meta.url)});if(u===void 0)return e.write(`Error: The script being called was not in a package, weird.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
AABB
|
|
1
2
|
ABFR
|
|
3
|
+
ALAC
|
|
2
4
|
AMNH
|
|
3
5
|
ANKR
|
|
4
6
|
APFS
|
|
@@ -13,6 +15,7 @@ AVIXA
|
|
|
13
15
|
BBVA
|
|
14
16
|
BICSI
|
|
15
17
|
BIRP
|
|
18
|
+
BLAS
|
|
16
19
|
BMBF
|
|
17
20
|
BOGO
|
|
18
21
|
BOWN
|
|
@@ -37,6 +40,7 @@ CNVIO
|
|
|
37
40
|
COFDM
|
|
38
41
|
CPAN
|
|
39
42
|
CPNI
|
|
43
|
+
CRAN
|
|
40
44
|
CRDT
|
|
41
45
|
CVPR
|
|
42
46
|
CWRU
|
|
@@ -47,6 +51,7 @@ DJVU
|
|
|
47
51
|
DMARC
|
|
48
52
|
DMNS
|
|
49
53
|
DNSSEC
|
|
54
|
+
DOAP
|
|
50
55
|
DOCSIS
|
|
51
56
|
DPMS
|
|
52
57
|
DSIM
|
|
@@ -75,10 +80,13 @@ FOUC
|
|
|
75
80
|
FOUSC
|
|
76
81
|
FSRS
|
|
77
82
|
FTXT
|
|
83
|
+
GENICAM
|
|
84
|
+
GLFW
|
|
78
85
|
GLSL
|
|
79
86
|
GLTF
|
|
80
87
|
GPLT
|
|
81
88
|
GRAYA
|
|
89
|
+
GTIN
|
|
82
90
|
HAARP
|
|
83
91
|
HALD
|
|
84
92
|
HDRI
|
|
@@ -110,6 +118,7 @@ LLDB
|
|
|
110
118
|
LLIS
|
|
111
119
|
LLM
|
|
112
120
|
LTMSC
|
|
121
|
+
LTSC
|
|
113
122
|
LWJGL
|
|
114
123
|
MCAD
|
|
115
124
|
MCMC
|
|
@@ -138,6 +147,7 @@ NIMH
|
|
|
138
147
|
NKSC
|
|
139
148
|
NLTK
|
|
140
149
|
NMUSN
|
|
150
|
+
NSIS
|
|
141
151
|
NTFS
|
|
142
152
|
NYPL
|
|
143
153
|
NYSCA
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
apacheconf
|
|
1
2
|
apkg
|
|
3
|
+
authinfo
|
|
2
4
|
btif
|
|
3
5
|
cjpeg
|
|
4
6
|
cjsx
|
|
@@ -10,16 +12,24 @@ gif
|
|
|
10
12
|
gifs
|
|
11
13
|
icns
|
|
12
14
|
importmap
|
|
15
|
+
inputrc
|
|
16
|
+
jhtml
|
|
17
|
+
latexmkrc
|
|
13
18
|
localappdata
|
|
14
19
|
mjsx
|
|
15
20
|
mtsx
|
|
21
|
+
pubspec
|
|
16
22
|
pyproject
|
|
17
23
|
refspec
|
|
24
|
+
rhtml
|
|
18
25
|
tfstate
|
|
19
26
|
tfvars
|
|
20
27
|
tmpv
|
|
21
28
|
tzdb
|
|
22
29
|
usdz
|
|
23
30
|
venv
|
|
31
|
+
vimrc
|
|
32
|
+
vmwarevm
|
|
24
33
|
wgsl
|
|
25
34
|
xcodeproj
|
|
35
|
+
zhistory
|
package/dictionaries/kp-misc.txt
CHANGED
package/dictionaries/kp-tech.txt
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
aacbrew
|
|
2
2
|
Acrobits
|
|
3
3
|
adjustmentsinfo
|
|
4
|
+
adobereader
|
|
4
5
|
Afternic
|
|
5
6
|
Airtable
|
|
6
7
|
altool
|
|
@@ -12,6 +13,7 @@ aphex
|
|
|
12
13
|
apos
|
|
13
14
|
Appium
|
|
14
15
|
AppleScript
|
|
16
|
+
appstore
|
|
15
17
|
apufix
|
|
16
18
|
Archivy
|
|
17
19
|
argless
|
|
@@ -22,6 +24,7 @@ assetsignore
|
|
|
22
24
|
astable
|
|
23
25
|
Astro
|
|
24
26
|
astrojs
|
|
27
|
+
asyncio
|
|
25
28
|
attw
|
|
26
29
|
autoanki
|
|
27
30
|
autoclean
|
|
@@ -38,6 +41,7 @@ backlinks
|
|
|
38
41
|
backtest
|
|
39
42
|
balena
|
|
40
43
|
Balsamiq
|
|
44
|
+
bandcamp
|
|
41
45
|
beforeunload
|
|
42
46
|
bézier
|
|
43
47
|
bgsound
|
|
@@ -49,6 +53,7 @@ bigrams
|
|
|
49
53
|
bindability
|
|
50
54
|
bioinformatics
|
|
51
55
|
bitvise
|
|
56
|
+
blackmagic
|
|
52
57
|
Blotar
|
|
53
58
|
boids
|
|
54
59
|
Boostnote
|
|
@@ -99,6 +104,7 @@ colorjs
|
|
|
99
104
|
colspan
|
|
100
105
|
combinators
|
|
101
106
|
confbox
|
|
107
|
+
configparser
|
|
102
108
|
controlend
|
|
103
109
|
controlstart
|
|
104
110
|
conv
|
|
@@ -143,6 +149,7 @@ dendron
|
|
|
143
149
|
deno
|
|
144
150
|
devel
|
|
145
151
|
dicom
|
|
152
|
+
direnv
|
|
146
153
|
disablepictureinpicture
|
|
147
154
|
distutils
|
|
148
155
|
divs
|
|
@@ -173,6 +180,7 @@ fanout
|
|
|
173
180
|
farbfeld
|
|
174
181
|
farmfe
|
|
175
182
|
fassets
|
|
183
|
+
fastapi
|
|
176
184
|
faststart
|
|
177
185
|
favicons
|
|
178
186
|
fbase
|
|
@@ -221,10 +229,14 @@ glew
|
|
|
221
229
|
glkview
|
|
222
230
|
godebug
|
|
223
231
|
gogs
|
|
232
|
+
golangci
|
|
233
|
+
googlechrome
|
|
224
234
|
goreleaser
|
|
235
|
+
graphviz
|
|
225
236
|
Grav
|
|
226
237
|
Gridsome
|
|
227
238
|
GSAP
|
|
239
|
+
gstreamer
|
|
228
240
|
guetzli
|
|
229
241
|
gzipped
|
|
230
242
|
Hackaday
|
|
@@ -264,6 +276,7 @@ introstart
|
|
|
264
276
|
InvisBox
|
|
265
277
|
iosveka
|
|
266
278
|
ipynb
|
|
279
|
+
isort
|
|
267
280
|
itson
|
|
268
281
|
jetblack
|
|
269
282
|
jpgs
|
|
@@ -279,12 +292,14 @@ keepnames
|
|
|
279
292
|
Keybr
|
|
280
293
|
keydown
|
|
281
294
|
keyof
|
|
295
|
+
killall
|
|
282
296
|
Kinect
|
|
283
297
|
kinects
|
|
284
298
|
kiota
|
|
285
299
|
kputil
|
|
286
300
|
ksc
|
|
287
301
|
ksdiff
|
|
302
|
+
kubectx
|
|
288
303
|
labelot
|
|
289
304
|
lanczos
|
|
290
305
|
langchain
|
|
@@ -394,6 +409,7 @@ Multitaction
|
|
|
394
409
|
multiview
|
|
395
410
|
mypy
|
|
396
411
|
nannou
|
|
412
|
+
nanotech
|
|
397
413
|
navas
|
|
398
414
|
Navizon
|
|
399
415
|
ndis
|
|
@@ -412,6 +428,7 @@ njson
|
|
|
412
428
|
Noctua
|
|
413
429
|
Nodebox
|
|
414
430
|
nodenext
|
|
431
|
+
nodenv
|
|
415
432
|
noembed
|
|
416
433
|
nokey
|
|
417
434
|
noopener
|
|
@@ -443,12 +460,14 @@ Octocat
|
|
|
443
460
|
Odroid
|
|
444
461
|
Odroidh
|
|
445
462
|
Odroidxu
|
|
463
|
+
oembed
|
|
446
464
|
oflog
|
|
447
465
|
ofparam
|
|
448
466
|
ohmyzsh
|
|
449
467
|
okhsv
|
|
450
468
|
oklab
|
|
451
469
|
ollama
|
|
470
|
+
omnigraffle
|
|
452
471
|
onehot
|
|
453
472
|
openframeworks
|
|
454
473
|
opengl
|
|
@@ -532,6 +551,7 @@ psds
|
|
|
532
551
|
psexec
|
|
533
552
|
publiccode
|
|
534
553
|
pushshift
|
|
554
|
+
pyenv
|
|
535
555
|
pylib
|
|
536
556
|
pylint
|
|
537
557
|
pypi
|
|
@@ -602,6 +622,7 @@ softphone
|
|
|
602
622
|
softprops
|
|
603
623
|
sortf
|
|
604
624
|
sortstatic
|
|
625
|
+
soundcloud
|
|
605
626
|
speex
|
|
606
627
|
squoosh
|
|
607
628
|
srgb
|
|
@@ -675,6 +696,7 @@ Tukul
|
|
|
675
696
|
tweakpane
|
|
676
697
|
tweener
|
|
677
698
|
tweens
|
|
699
|
+
typora
|
|
678
700
|
unibody
|
|
679
701
|
unifiedjs
|
|
680
702
|
unist
|