@kitschpatrol/cspell-config 5.13.0 → 6.0.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.d.ts CHANGED
@@ -1,5 +1,7 @@
1
- import type { CSpellUserSettings as CspellConfig } from '@cspell/cspell-types';
2
- declare const sharedCspellConfig: CspellConfig;
1
+ import { CSpellUserSettings } from "@cspell/cspell-types";
2
+
3
+ //#region src/index.d.ts
4
+ declare const sharedCspellConfig: CSpellUserSettings;
3
5
  /**
4
6
  * **\@Kitschpatrol's Shared Cspell Configuration**
5
7
  * @see [@kitschpatrol/cspell-config](https://github.com/kitschpatrol/shared-config/tree/main/packages/cspell-config)
@@ -13,5 +15,6 @@ declare const sharedCspellConfig: CspellConfig;
13
15
  * })
14
16
  * ```
15
17
  */
16
- export declare function cspellConfig(config?: CspellConfig): CspellConfig;
17
- export default sharedCspellConfig;
18
+ declare function cspellConfig(config?: CSpellUserSettings): CSpellUserSettings;
19
+ //#endregion
20
+ export { cspellConfig, sharedCspellConfig as default };
package/dist/index.js CHANGED
@@ -1,131 +1 @@
1
- const sharedCspellConfig = {
2
- allowCompoundWords: false,
3
- caseSensitive: false,
4
- dictionaries: [
5
- 'lorem-ipsum',
6
- 'git',
7
- 'gaming-terms',
8
- 'npm',
9
- 'data-science',
10
- 'fullstack',
11
- 'kp-acronyms',
12
- 'kp-brands',
13
- 'kp-eslint',
14
- 'kp-files',
15
- 'kp-misc',
16
- 'kp-names',
17
- 'kp-tech',
18
- ],
19
- dictionaryDefinitions: [
20
- {
21
- addWords: true,
22
- name: 'kp-acronyms',
23
- path: '../dictionaries/kp-acronyms.txt',
24
- },
25
- {
26
- addWords: true,
27
- name: 'kp-brands',
28
- path: '../dictionaries/kp-brands.txt',
29
- },
30
- {
31
- addWords: true,
32
- name: 'kp-eslint',
33
- path: '../dictionaries/kp-eslint.txt',
34
- },
35
- {
36
- addWords: true,
37
- name: 'kp-files',
38
- path: '../dictionaries/kp-files.txt',
39
- },
40
- {
41
- addWords: true,
42
- name: 'kp-misc',
43
- path: '../dictionaries/kp-misc.txt',
44
- },
45
- {
46
- addWords: true,
47
- name: 'kp-names',
48
- path: '../dictionaries/kp-names.txt',
49
- },
50
- {
51
- addWords: true,
52
- name: 'kp-tech',
53
- path: '../dictionaries/kp-tech.txt',
54
- },
55
- ],
56
- enabled: true,
57
- enableFiletypes: ['astro', 'md', 'mdx', 'patch', 'svelte'],
58
- enableGlobDot: false,
59
- // eslint-disable-next-line no-template-curly-in-string
60
- globRoot: '${cwd}',
61
- ignorePaths: [
62
- '__snapshots__',
63
- '*.app',
64
- '*.avif',
65
- '*.m4a',
66
- '*.m4v',
67
- '*.mp3',
68
- '*.mp4',
69
- '*.patch',
70
- '*.scpt',
71
- '*.svg',
72
- '*.tif',
73
- '*.tldr',
74
- '*.3gp',
75
- '*.aac',
76
- '*.avi',
77
- '*.flac',
78
- '*.flv',
79
- '*.mkv',
80
- '*.mpeg',
81
- '*.oga',
82
- '*.ogg',
83
- '*.ogv',
84
- '*.ogx',
85
- '*.opus',
86
- '*.spx',
87
- '*.swf',
88
- '*.wav',
89
- 'package.json',
90
- '*/*package.json',
91
- 'patches/',
92
- 'pnpm-lock.yaml',
93
- ],
94
- ignoreRegExpList: ['tp-.+', 'tweakpane-plugin-.+', String.raw `v2_c_\w{21}`],
95
- language: 'en,en-US',
96
- languageSettings: [
97
- {
98
- ignoreRegExpList: [
99
- // TODO does regex really need to be global?
100
- '/^```(?:.|\\s)+?^```/mig', // Code fences
101
- String.raw `\$\$.*?\$\$`, // Ignore display MathJax $$...$$
102
- String.raw `\$[^$\n]*\$`, // Ignore inline MathJax $...$
103
- // False negatives...
104
- // String.raw`[A-Z\d\-]{8,}`, // Probable IDs or model names, e.g. AK-68-S7KA-0004
105
- ],
106
- languageId: 'markdown,mdx,json',
107
- },
108
- ],
109
- useGitignore: true,
110
- version: '0.2',
111
- };
112
- /**
113
- * **\@Kitschpatrol's Shared Cspell Configuration**
114
- * @see [@kitschpatrol/cspell-config](https://github.com/kitschpatrol/shared-config/tree/main/packages/cspell-config)
115
- * @see [@kitschpatrol/shared-config](https://github.com/kitschpatrol/shared-config)
116
- * @example
117
- * ```js
118
- * export default cspellConfig({
119
- * ignorePaths: [
120
- * '/test/fixtures/input',
121
- * ],
122
- * })
123
- * ```
124
- */
125
- export function cspellConfig(config) {
126
- return {
127
- import: '@kitschpatrol/cspell-config',
128
- ...config,
129
- };
130
- }
131
- export default sharedCspellConfig;
1
+ const e={allowCompoundWords:!1,caseSensitive:!1,dictionaries:[`lorem-ipsum`,`git`,`gaming-terms`,`npm`,`data-science`,`fullstack`,`kp-acronyms`,`kp-brands`,`kp-eslint`,`kp-files`,`kp-misc`,`kp-names`,`kp-tech`],dictionaryDefinitions:[{addWords:!0,name:`kp-acronyms`,path:`../dictionaries/kp-acronyms.txt`},{addWords:!0,name:`kp-brands`,path:`../dictionaries/kp-brands.txt`},{addWords:!0,name:`kp-eslint`,path:`../dictionaries/kp-eslint.txt`},{addWords:!0,name:`kp-files`,path:`../dictionaries/kp-files.txt`},{addWords:!0,name:`kp-misc`,path:`../dictionaries/kp-misc.txt`},{addWords:!0,name:`kp-names`,path:`../dictionaries/kp-names.txt`},{addWords:!0,name:`kp-tech`,path:`../dictionaries/kp-tech.txt`}],enabled:!0,enableFiletypes:[`astro`,`md`,`mdx`,`patch`,`svelte`],enableGlobDot:!1,globRoot:"${cwd}",ignorePaths:`__snapshots__,*.app,*.avif,*.m4a,*.m4v,*.mp3,*.mp4,*.patch,*.scpt,*.svg,*.tif,*.tldr,*.3gp,*.aac,*.avi,*.flac,*.flv,*.mkv,*.mpeg,*.oga,*.ogg,*.ogv,*.ogx,*.opus,*.spx,*.swf,*.wav,package.json,*/*package.json,patches/,pnpm-lock.yaml`.split(`,`),ignoreRegExpList:[`tp-.+`,`tweakpane-plugin-.+`,String.raw`v2_c_\w{21}`],language:`en,en-US`,languageSettings:[{ignoreRegExpList:["/^```(?:.|\\s)+?^```/mig",String.raw`\$\$.*?\$\$`,String.raw`\$[^$\n]*\$`],languageId:`markdown,mdx,json`}],useGitignore:!0,version:`0.2`};function t(e){return{import:`@kitschpatrol/cspell-config`,...e}}export{t as cspellConfig,e as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/cspell-config",
3
- "version": "5.13.0",
3
+ "version": "6.0.0",
4
4
  "description": "CSpell configuration for @kitschpatrol/shared-config.",
5
5
  "keywords": [
6
6
  "shared-config",
@@ -33,7 +33,6 @@
33
33
  "main": "dist/index.js",
34
34
  "types": "dist/index.d.ts",
35
35
  "bin": {
36
- "kpi-cspell": "bin/cli.js",
37
36
  "ksc-cspell": "bin/cli.js"
38
37
  },
39
38
  "files": [
@@ -43,30 +42,36 @@
43
42
  "init/*"
44
43
  ],
45
44
  "dependencies": {
46
- "@cspell/cspell-types": "^9.6.0",
45
+ "@cspell/cspell-types": "^9.6.4",
47
46
  "@pinojs/json-colorizer": "^4.0.0",
48
47
  "case-police": "^2.1.1",
49
48
  "cosmiconfig": "^9.0.0",
50
49
  "cosmiconfig-typescript-loader": "^6.2.0",
51
- "cspell": "^9.6.0",
52
- "cspell-lib": "^9.6.0",
50
+ "cspell": "^9.6.4",
51
+ "cspell-lib": "^9.6.4",
52
+ "decircular": "^1.0.0",
53
+ "deepmerge": "^4.3.1",
53
54
  "execa": "^9.6.1",
54
55
  "find-workspaces": "^0.3.1",
55
56
  "fs-extra": "^11.3.3",
56
- "prettier": "^3.8.1"
57
+ "json-stringify-pretty-compact": "^4.0.0",
58
+ "package-up": "^5.0.0",
59
+ "picocolors": "^1.1.1",
60
+ "prettier": "^3.8.1",
61
+ "yargs": "^18.0.0"
57
62
  },
58
63
  "devDependencies": {
59
- "globby": "^15.0.0",
64
+ "globby": "^16.1.1",
60
65
  "untildify": "^6.0.0"
61
66
  },
62
67
  "engines": {
63
- "node": ">=20.19.0"
68
+ "node": ">=22.21.0"
64
69
  },
65
70
  "publishConfig": {
66
71
  "access": "public"
67
72
  },
68
73
  "scripts": {
69
- "build": "tsc && tsx ../../scripts/build.ts",
74
+ "build": "tsdown",
70
75
  "cli": "node ./bin/cli.js",
71
76
  "find-duplicates": "cat ./dictionaries/*.txt | sort -f | uniq -i -d",
72
77
  "list-words": "cat ./dictionaries/*.txt",