@w5s/cspell-config 1.0.0-alpha.1 → 1.0.0-alpha.11

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.
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
3
+ "version": "0.2",
4
+ "name": "W5s default settings",
5
+ "id": "w5s-default-json",
6
+ "readonly": true,
7
+ "import": ["./lib/index.js"]
8
+ }
@@ -1,5 +1,6 @@
1
1
  autodevops
2
2
  automerge
3
+ browserslist
3
4
  camelcase
4
5
  circleci
5
6
  CODEOWNERS
@@ -15,6 +16,8 @@ healthcheck
15
16
  interruptible
16
17
  macOS
17
18
  npmjs
19
+ stylelint
20
+ stylelintrc
18
21
  subpackage
19
22
  templating
20
23
  typedoc
package/dict/names.txt CHANGED
@@ -1,4 +1,5 @@
1
1
  dbaeumer
2
+ espree
2
3
  jpolo
3
4
  rushstack
4
5
  seatonjiang
package/lib/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
1
  import type { AdvancedCSpellSettings } from '@cspell/cspell-types';
2
2
  declare const settings: AdvancedCSpellSettings;
3
3
  export = settings;
4
- //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
- // @ts-ignore
5
+ // @ts-ignore CSpell config is not typed
6
6
  const cspell_default_config_js_1 = __importDefault(require("@cspell/cspell-bundled-dicts/cspell-default.config.js"));
7
7
  const toArray = (value) => (Array.isArray(value) ? value : value == null ? [] : [value]);
8
8
  const defaultSettings = cspell_default_config_js_1.default;
@@ -30,6 +30,7 @@ const settings = {
30
30
  description: 'Default cspell configuration.',
31
31
  words: [],
32
32
  flagWords: [],
33
+ useGitignore: true,
33
34
  dictionaryDefinitions: [
34
35
  ...toArray(defaultSettings.dictionaryDefinitions),
35
36
  {
@@ -65,12 +66,10 @@ const settings = {
65
66
  '**/__snapshots__/**',
66
67
  // '**/.git/**',
67
68
  '**/.vscode/**',
68
- '**/*.log',
69
69
  '**/*.snap',
70
- '**/build/**',
71
- '**/dist/**',
72
70
  '**/lib/**',
73
71
  '**/node_modules/**',
72
+ '**/package.json',
74
73
  '**/package-lock.json',
75
74
  '**/renovate.json',
76
75
  '**/vscode-extension/**',
@@ -90,7 +89,11 @@ const settings = {
90
89
  dictionaries: ['w5s-typescript'],
91
90
  dictionaryDefinitions: [],
92
91
  },
92
+ {
93
+ languageId: 'typescript,javascript,typescriptreact,javascriptreact',
94
+ locale: '*',
95
+ ignoreRegExpList: ['\\/\\* eslint-disable.+', '\\/\\/ eslint-disable.+'],
96
+ },
93
97
  ],
94
98
  };
95
99
  module.exports = settings;
96
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/cspell-config",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.11",
4
4
  "description": "CSpell configuration presets",
5
5
  "keywords": [
6
6
  "cspell"
@@ -25,6 +25,7 @@
25
25
  },
26
26
  "typings": "./index.d.ts",
27
27
  "files": [
28
+ "cspell-ext.json",
28
29
  "dict/**/*",
29
30
  "lib/**/!(*.spec).d.ts",
30
31
  "lib/**/!(*.spec).d.ts.map",
@@ -35,10 +36,10 @@
35
36
  "scripts": {
36
37
  "__build:dict": "cd dict;cspell-tools-cli compile filetypes.txt",
37
38
  "build": "concurrently \"npm:build:*\" \":\"",
38
- "build:src": "tsc",
39
+ "build:tsc": "tsc -b tsconfig.build.json",
39
40
  "clean": "concurrently \"npm:clean:*\" \":\"",
40
- "clean:src": "rm -rf lib/*",
41
- "docs": "md-magic --path '**/*.md' --ignore='node_modules'",
41
+ "clean:tsc": "rm -rf lib",
42
+ "docs": "node ../../markdown.mjs",
42
43
  "format": "concurrently \"npm:format:*\" \":\"",
43
44
  "format:src": "eslint . --fix --ext=mjs,cjs,js,jsx,ts,tsx,json,jsonc,json5,yml,yaml",
44
45
  "lint": "concurrently \"npm:lint:*\" \":\"",
@@ -67,18 +68,23 @@
67
68
  "@cspell/cspell-bundled-dicts": "^6.0.0"
68
69
  },
69
70
  "devDependencies": {
70
- "@cspell/cspell-tools": "^6.18.0",
71
- "@cspell/cspell-types": "^6.18.0",
72
- "@jest/globals": "29.3.1"
71
+ "@cspell/cspell-tools": "6.27.0",
72
+ "@cspell/cspell-types": "6.27.0",
73
+ "@jest/globals": "29.4.3"
73
74
  },
74
75
  "peerDependencies": {
75
76
  "cspell": "^6.0.0"
76
77
  },
78
+ "peerDependenciesMeta": {
79
+ "cspell": {
80
+ "optional": true
81
+ }
82
+ },
77
83
  "engines": {
78
84
  "node": ">=16.0.0"
79
85
  },
80
86
  "publishConfig": {
81
87
  "access": "public"
82
88
  },
83
- "gitHead": "8208d001778969aa2dbe145ef9a4e9d836ff0c04"
89
+ "gitHead": "28afedf566a7a99dd040fffc8ef6d548056c62d0"
84
90
  }
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { AdvancedCSpellSettings } from '@cspell/cspell-types';
2
- // @ts-ignore
2
+ // @ts-ignore CSpell config is not typed
3
3
  import cSpellSettings from '@cspell/cspell-bundled-dicts/cspell-default.config.js';
4
4
 
5
5
  const toArray = <T>(value: T | T[] | undefined) => (Array.isArray(value) ? value : value == null ? [] : [value]);
@@ -28,6 +28,7 @@ const settings: AdvancedCSpellSettings = {
28
28
  description: 'Default cspell configuration.',
29
29
  words: [],
30
30
  flagWords: [],
31
+ useGitignore: true,
31
32
  dictionaryDefinitions: [
32
33
  ...toArray(defaultSettings.dictionaryDefinitions),
33
34
  {
@@ -63,12 +64,10 @@ const settings: AdvancedCSpellSettings = {
63
64
  '**/__snapshots__/**',
64
65
  // '**/.git/**',
65
66
  '**/.vscode/**',
66
- '**/*.log',
67
67
  '**/*.snap',
68
- '**/build/**',
69
- '**/dist/**',
70
68
  '**/lib/**',
71
69
  '**/node_modules/**',
70
+ '**/package.json',
72
71
  '**/package-lock.json',
73
72
  '**/renovate.json',
74
73
  '**/vscode-extension/**',
@@ -88,6 +87,11 @@ const settings: AdvancedCSpellSettings = {
88
87
  dictionaries: ['w5s-typescript'],
89
88
  dictionaryDefinitions: [],
90
89
  },
90
+ {
91
+ languageId: 'typescript,javascript,typescriptreact,javascriptreact',
92
+ locale: '*',
93
+ ignoreRegExpList: ['\\/\\* eslint-disable.+', '\\/\\/ eslint-disable.+'],
94
+ },
91
95
  ],
92
96
  };
93
97
 
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAsBnE,QAAA,MAAM,QAAQ,EAAE,sBAqEf,CAAC;AAEF,SAAS,QAAQ,CAAC"}
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AACA,aAAa;AACb,qHAAmF;AAEnF,MAAM,OAAO,GAAG,CAAI,KAA0B,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AACjH,MAAM,eAAe,GAAG,kCAAwC,CAAC;AACjE,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC;IAC5B,kCAAkC;IAClC,kCAAkC;IAClC,qCAAqC;IACrC,qCAAqC;IACrC,qCAAqC;IACrC,qCAAqC;IACrC,sCAAsC;IACtC,oCAAoC;IACpC,kCAAkC;IAClC,kCAAkC;IAClC,yCAAyC;IACzC,qCAAqC;IACrC,gCAAgC;IAChC,oCAAoC;CACrC,CAAC,CAAC;AAC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