@w5s/cspell-config 3.1.3 → 3.1.6

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.
@@ -3,6 +3,7 @@ automerge
3
3
  bigdecimal
4
4
  camelcase
5
5
  CODEOWNERS
6
+ configurator
6
7
  datasource
7
8
  datasources
8
9
  editorconfig
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ declare const meta: Readonly<{
5
5
  buildNumber: number;
6
6
  }>;
7
7
  //#endregion
8
- //#region ../../node_modules/.pnpm/@cspell+cspell-types@9.7.0/node_modules/@cspell/cspell-types/dist/TextMap-Cs2Bypvi.d.mts
8
+ //#region ../../node_modules/.pnpm/@cspell+cspell-types@10.0.0/node_modules/@cspell/cspell-types/dist/index-B8xFbW_T.d.mts
9
9
  //#region src/Parser/types.d.ts
10
10
  /**
11
11
  * A SourceMap is used to map or transform the location of a piece of text back to its original offsets.
@@ -165,7 +165,7 @@ type ScopeString = string;
165
165
  type Scope = ScopeChain | ScopeString; //#endregion
166
166
  //#region src/Parser/TextMap.d.ts
167
167
  //#endregion
168
- //#region ../../node_modules/.pnpm/@cspell+cspell-types@9.7.0/node_modules/@cspell/cspell-types/dist/index.d.mts
168
+ //#region ../../node_modules/.pnpm/@cspell+cspell-types@10.0.0/node_modules/@cspell/cspell-types/dist/index.d.mts
169
169
  //#region src/cspell-vfs.d.ts
170
170
  /**
171
171
  * Binary data for CSpellVFS file.
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import cSpellSettings from "@cspell/cspell-bundled-dicts/cspell-default.config.j
2
2
  //#region src/meta.ts
3
3
  const meta = Object.freeze({
4
4
  name: "@w5s/cspell-config",
5
- version: "3.1.3",
5
+ version: "3.1.6",
6
6
  buildNumber: 1
7
7
  });
8
8
  //#endregion
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/meta.ts","../src/config.ts"],"sourcesContent":["export const meta = Object.freeze({\n // @ts-ignore - these variables are injected at build time\n name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,\n // @ts-ignore - these variables are injected at build time\n version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,\n // @ts-ignore - these variables are injected at build time\n buildNumber: 1 as number, // (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,\n});\n","import type { AdvancedCSpellSettings } from '@cspell/cspell-types';\n// @ts-ignore CSpell config is not typed\nimport cSpellSettings from '@cspell/cspell-bundled-dicts/cspell-default.config.js';\n\nconst toArray = <T>(value: T | T[] | undefined) => (Array.isArray(value) ? value : value == null ? [] : [value]);\nconst defaultSettings = cSpellSettings as AdvancedCSpellSettings;\n// eslint-disable-next-line unicorn/no-useless-collection-argument\nconst excludeImport = new Set<string>([\n // Put here the imports you want to exclude\n]);\nconst dictionaryDefinitions: AdvancedCSpellSettings['dictionaryDefinitions'] = [\n {\n addWords: false,\n name: 'w5s-filetypes',\n path: '../dict/filetypes.txt',\n description: 'Additional file types',\n },\n {\n addWords: false,\n name: 'w5s-fullstack',\n path: '../dict/fullstack.txt',\n description: 'Fullstack terms',\n },\n {\n addWords: false,\n name: 'w5s-typescript',\n path: '../dict/typescript.txt',\n description: 'Typescript keywords',\n },\n {\n addWords: false,\n name: 'w5s-names',\n path: '../dict/names.txt',\n description: 'Known names',\n },\n {\n addWords: false,\n name: 'w5s-npm',\n path: '../dict/npm.txt',\n description: 'NPM packages',\n },\n];\n\nexport const config: AdvancedCSpellSettings = {\n ...defaultSettings,\n name: 'W5S default settings .js',\n id: 'w5s-default-js',\n language: 'en',\n description: 'Default cspell configuration.',\n words: [],\n flagWords: [],\n useGitignore: true,\n dictionaryDefinitions: [...toArray(defaultSettings.dictionaryDefinitions), ...dictionaryDefinitions],\n dictionaries: [\n ...toArray(defaultSettings.dictionaries),\n ...dictionaryDefinitions\n .map((dictionaryDefinition) => dictionaryDefinition.name)\n .filter((name) => !['w5s-typescript'].includes(name)),\n ],\n ignoreWords: [],\n import: toArray(defaultSettings.import).filter((dict) => !excludeImport.has(dict)),\n ignorePaths: [\n ...toArray(defaultSettings.ignorePaths),\n '**/CHANGELOG.md',\n '**/__snapshots__/**',\n // '**/.git/**',\n '**/.vscode/**',\n '**/*.snap',\n '**/dist/**',\n '**/node_modules/**',\n '**/package.json',\n '**/package-lock.json',\n '**/renovate.json',\n '**/vscode-extension/**',\n '**/yarn.lock',\n '**/pnpm-lock.yaml',\n\n // Ignore common media files\n '**/*.svg',\n '**/*.webp',\n '**/*.webm',\n ],\n languageSettings: [\n ...toArray(defaultSettings.languageSettings),\n {\n languageId: 'typescript,javascript,typescriptreact,javascriptreact',\n locale: '*',\n includeRegExpList: [],\n ignoreRegExpList: ['js-hex-escape', 'js-unicode-escape', 'js-regexp-flags'],\n patterns: [],\n dictionaries: ['w5s-typescript'],\n dictionaryDefinitions: [],\n },\n {\n languageId: 'typescript,javascript,typescriptreact,javascriptreact',\n locale: '*',\n // eslint-disable-next-line unicorn/prefer-string-raw\n ignoreRegExpList: ['\\\\/\\\\* eslint-disable.+', '\\\\/\\\\/ eslint-disable.+'],\n },\n ],\n};\n"],"mappings":";;AAAA,MAAa,OAAO,OAAO,OAAO;CAEhC,MAAA;CAEA,SAAA;CAEA,aAAa;CACd,CAAC;;;ACHF,MAAM,WAAc,UAAgC,MAAM,QAAQ,MAAM,GAAG,QAAQ,SAAS,OAAO,EAAE,GAAG,CAAC,MAAM;AAC/G,MAAM,kBAAkB;AAExB,MAAM,gCAAgB,IAAI,IAAY,EAErC,CAAC;AACF,MAAM,wBAAyE;CAC7E;EACE,UAAU;EACV,MAAM;EACN,MAAM;EACN,aAAa;EACd;CACD;EACE,UAAU;EACV,MAAM;EACN,MAAM;EACN,aAAa;EACd;CACD;EACE,UAAU;EACV,MAAM;EACN,MAAM;EACN,aAAa;EACd;CACD;EACE,UAAU;EACV,MAAM;EACN,MAAM;EACN,aAAa;EACd;CACD;EACE,UAAU;EACV,MAAM;EACN,MAAM;EACN,aAAa;EACd;CACF;AAED,MAAa,SAAiC;CAC5C,GAAG;CACH,MAAM;CACN,IAAI;CACJ,UAAU;CACV,aAAa;CACb,OAAO,EAAE;CACT,WAAW,EAAE;CACb,cAAc;CACd,uBAAuB,CAAC,GAAG,QAAQ,gBAAgB,sBAAsB,EAAE,GAAG,sBAAsB;CACpG,cAAc,CACZ,GAAG,QAAQ,gBAAgB,aAAa,EACxC,GAAG,sBACA,KAAK,yBAAyB,qBAAqB,KAAK,CACxD,QAAQ,SAAS,CAAC,CAAC,iBAAiB,CAAC,SAAS,KAAK,CAAC,CACxD;CACD,aAAa,EAAE;CACf,QAAQ,QAAQ,gBAAgB,OAAO,CAAC,QAAQ,SAAS,CAAC,cAAc,IAAI,KAAK,CAAC;CAClF,aAAa;EACX,GAAG,QAAQ,gBAAgB,YAAY;EACvC;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;EACD;CACD,kBAAkB;EAChB,GAAG,QAAQ,gBAAgB,iBAAiB;EAC5C;GACE,YAAY;GACZ,QAAQ;GACR,mBAAmB,EAAE;GACrB,kBAAkB;IAAC;IAAiB;IAAqB;IAAkB;GAC3E,UAAU,EAAE;GACZ,cAAc,CAAC,iBAAiB;GAChC,uBAAuB,EAAE;GAC1B;EACD;GACE,YAAY;GACZ,QAAQ;GAER,kBAAkB,CAAC,2BAA2B,0BAA0B;GACzE;EACF;CACF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/meta.ts","../src/config.ts"],"sourcesContent":["export const meta = Object.freeze({\n // @ts-ignore - these variables are injected at build time\n name: (typeof __PACKAGE_NAME__ === 'undefined' ? '' : __PACKAGE_NAME__) as string,\n // @ts-ignore - these variables are injected at build time\n version: (typeof __PACKAGE_VERSION__ === 'undefined' ? '' : __PACKAGE_VERSION__) as string,\n // @ts-ignore - these variables are injected at build time\n buildNumber: 1 as number, // (typeof __PACKAGE_BUILD_NUMBER__ === 'undefined' ? 0 : __PACKAGE_BUILD_NUMBER__) as number,\n});\n","import type { AdvancedCSpellSettings } from '@cspell/cspell-types';\n// @ts-ignore CSpell config is not typed\nimport cSpellSettings from '@cspell/cspell-bundled-dicts/cspell-default.config.js';\n\nconst toArray = <T>(value: T | T[] | undefined) => (Array.isArray(value) ? value : value == null ? [] : [value]);\nconst defaultSettings = cSpellSettings as AdvancedCSpellSettings;\n// eslint-disable-next-line unicorn/no-useless-collection-argument\nconst excludeImport = new Set<string>([\n // Put here the imports you want to exclude\n]);\nconst dictionaryDefinitions: AdvancedCSpellSettings['dictionaryDefinitions'] = [\n {\n addWords: false,\n name: 'w5s-filetypes',\n path: '../dict/filetypes.txt',\n description: 'Additional file types',\n },\n {\n addWords: false,\n name: 'w5s-fullstack',\n path: '../dict/fullstack.txt',\n description: 'Fullstack terms',\n },\n {\n addWords: false,\n name: 'w5s-typescript',\n path: '../dict/typescript.txt',\n description: 'Typescript keywords',\n },\n {\n addWords: false,\n name: 'w5s-names',\n path: '../dict/names.txt',\n description: 'Known names',\n },\n {\n addWords: false,\n name: 'w5s-npm',\n path: '../dict/npm.txt',\n description: 'NPM packages',\n },\n];\n\nexport const config: AdvancedCSpellSettings = {\n ...defaultSettings,\n name: 'W5S default settings .js',\n id: 'w5s-default-js',\n language: 'en',\n description: 'Default cspell configuration.',\n words: [],\n flagWords: [],\n useGitignore: true,\n dictionaryDefinitions: [...toArray(defaultSettings.dictionaryDefinitions), ...dictionaryDefinitions],\n dictionaries: [\n ...toArray(defaultSettings.dictionaries),\n ...dictionaryDefinitions\n .map((dictionaryDefinition) => dictionaryDefinition.name)\n .filter((name) => !['w5s-typescript'].includes(name)),\n ],\n ignoreWords: [],\n import: toArray(defaultSettings.import).filter((dict) => !excludeImport.has(dict)),\n ignorePaths: [\n ...toArray(defaultSettings.ignorePaths),\n '**/CHANGELOG.md',\n '**/__snapshots__/**',\n // '**/.git/**',\n '**/.vscode/**',\n '**/*.snap',\n '**/dist/**',\n '**/node_modules/**',\n '**/package.json',\n '**/package-lock.json',\n '**/renovate.json',\n '**/vscode-extension/**',\n '**/yarn.lock',\n '**/pnpm-lock.yaml',\n\n // Ignore common media files\n '**/*.svg',\n '**/*.webp',\n '**/*.webm',\n ],\n languageSettings: [\n ...toArray(defaultSettings.languageSettings),\n {\n languageId: 'typescript,javascript,typescriptreact,javascriptreact',\n locale: '*',\n includeRegExpList: [],\n ignoreRegExpList: ['js-hex-escape', 'js-unicode-escape', 'js-regexp-flags'],\n patterns: [],\n dictionaries: ['w5s-typescript'],\n dictionaryDefinitions: [],\n },\n {\n languageId: 'typescript,javascript,typescriptreact,javascriptreact',\n locale: '*',\n // eslint-disable-next-line unicorn/prefer-string-raw\n ignoreRegExpList: ['\\\\/\\\\* eslint-disable.+', '\\\\/\\\\/ eslint-disable.+'],\n },\n ],\n};\n"],"mappings":";;AAAA,MAAa,OAAO,OAAO,OAAO;CAEhC,MAAA;CAEA,SAAA;CAEA,aAAa;AACf,CAAC;;;ACHD,MAAM,WAAc,UAAgC,MAAM,QAAQ,KAAK,IAAI,QAAQ,SAAS,OAAO,CAAC,IAAI,CAAC,KAAK;AAC9G,MAAM,kBAAkB;AAExB,MAAM,gCAAgB,IAAI,IAAY,CAEtC,CAAC;AACD,MAAM,wBAAyE;CAC7E;EACE,UAAU;EACV,MAAM;EACN,MAAM;EACN,aAAa;CACf;CACA;EACE,UAAU;EACV,MAAM;EACN,MAAM;EACN,aAAa;CACf;CACA;EACE,UAAU;EACV,MAAM;EACN,MAAM;EACN,aAAa;CACf;CACA;EACE,UAAU;EACV,MAAM;EACN,MAAM;EACN,aAAa;CACf;CACA;EACE,UAAU;EACV,MAAM;EACN,MAAM;EACN,aAAa;CACf;AACF;AAEA,MAAa,SAAiC;CAC5C,GAAG;CACH,MAAM;CACN,IAAI;CACJ,UAAU;CACV,aAAa;CACb,OAAO,CAAC;CACR,WAAW,CAAC;CACZ,cAAc;CACd,uBAAuB,CAAC,GAAG,QAAQ,gBAAgB,qBAAqB,GAAG,GAAG,qBAAqB;CACnG,cAAc,CACZ,GAAG,QAAQ,gBAAgB,YAAY,GACvC,GAAG,sBACA,KAAK,yBAAyB,qBAAqB,IAAI,EACvD,QAAQ,SAAS,CAAC,CAAC,gBAAgB,EAAE,SAAS,IAAI,CAAC,CACxD;CACA,aAAa,CAAC;CACd,QAAQ,QAAQ,gBAAgB,MAAM,EAAE,QAAQ,SAAS,CAAC,cAAc,IAAI,IAAI,CAAC;CACjF,aAAa;EACX,GAAG,QAAQ,gBAAgB,WAAW;EACtC;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;CACF;CACA,kBAAkB;EAChB,GAAG,QAAQ,gBAAgB,gBAAgB;EAC3C;GACE,YAAY;GACZ,QAAQ;GACR,mBAAmB,CAAC;GACpB,kBAAkB;IAAC;IAAiB;IAAqB;GAAiB;GAC1E,UAAU,CAAC;GACX,cAAc,CAAC,gBAAgB;GAC/B,uBAAuB,CAAC;EAC1B;EACA;GACE,YAAY;GACZ,QAAQ;GAER,kBAAkB,CAAC,2BAA2B,yBAAyB;EACzE;CACF;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/cspell-config",
3
- "version": "3.1.3",
3
+ "version": "3.1.6",
4
4
  "description": "CSpell configuration presets",
5
5
  "keywords": [
6
6
  "cspell"
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "git@github.com:w5s/project-config.git",
14
+ "url": "git+ssh@github.com:w5s/project-config.git",
15
15
  "directory": "packages/cspell-config"
16
16
  },
17
17
  "license": "MIT",
@@ -39,10 +39,10 @@
39
39
  "postpack": "clean-package restore"
40
40
  },
41
41
  "dependencies": {
42
- "@cspell/cspell-bundled-dicts": "^9.0.0"
42
+ "@cspell/cspell-bundled-dicts": "^10.0.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "cspell": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0"
45
+ "cspell": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0"
46
46
  },
47
47
  "peerDependenciesMeta": {
48
48
  "cspell": {
@@ -50,11 +50,11 @@
50
50
  }
51
51
  },
52
52
  "engines": {
53
- "node": ">=20.0.0"
53
+ "node": ">=22.0.0"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
58
  "sideEffect": false,
59
- "gitHead": "4e72e6d3c7b204e0f08c3f44817d48ad0d44ea33"
59
+ "gitHead": "ab7987a57772b2e7fb3ef7eb4cadb3cedd9cc9ae"
60
60
  }