commitlint-plugin-cspell 0.3.0 → 0.5.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/types.d.ts CHANGED
@@ -1,12 +1,10 @@
1
- import type { Plugin } from '@commitlint/types';
2
- export type RemoveIndex<T> = {
3
- [K in keyof T as symbol extends K ? never : string extends K ? never : number extends K ? never : K]: T[K];
4
- };
1
+ import type { AnyRuleConfig, Plugin, RuleConfigQuality } from '@commitlint/types';
5
2
  export type CommitLintRule = Plugin['rules'][string];
6
3
  export type RuleParameters = Parameters<CommitLintRule>;
7
4
  export type Commit = RuleParameters[0];
8
- export type CommitBase = RemoveIndex<RuleParameters[0]>;
9
- export declare const properties: ("header" | "body" | "footer" | "type" | "scope" | "subject")[];
5
+ export declare const properties: string[];
10
6
  export type CommitProperty = (typeof properties)[number];
11
- export type PluginRuleEntry = [ruleName: `cspell/${CommitProperty}`, ruleFn: CommitLintRule];
7
+ export type CspellRuleName = `cspell/${CommitProperty}`;
8
+ export type PluginRulesConfig = Record<CspellRuleName, AnyRuleConfig<RuleConfigQuality.User>>;
9
+ export type PluginRuleEntry = [ruleName: CspellRuleName, ruleFn: CommitLintRule];
12
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"./src/","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,IAAI,MAAM,SAAS,CAAC,GAAG,KAAK,GAAG,MAAM,SAAS,CAAC,GAAG,KAAK,GAAG,MAAM,SAAS,CAAC,GAAG,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAC3G,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;AAExD,MAAM,MAAM,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAExD,eAAO,MAAM,UAAU,iEAA0F,CAAC;AAElH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,UAAU,cAAc,EAAE,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"./src/","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAElF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;AAExD,MAAM,MAAM,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;AAEvC,eAAO,MAAM,UAAU,UAAsF,CAAC;AAE9G,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,MAAM,MAAM,cAAc,GAAG,UAAU,cAAc,EAAE,CAAC;AAExD,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,cAAc,EAAE,aAAa,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;AAE9F,MAAM,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC"}
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"./src/","sources":["types.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAgC,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"./src/","sources":["types.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAA4B,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "commitlint-plugin-cspell",
3
3
  "description": "Spellcheck your commit messages with CSpell",
4
- "version": "0.3.0",
4
+ "version": "0.5.0",
5
5
  "keywords": [
6
6
  "commitlint",
7
7
  "commitlintplugin",
@@ -17,7 +17,7 @@
17
17
  "url": "https://github.com/webdeveric/commitlint-plugin-cspell/issues"
18
18
  },
19
19
  "license": "MIT",
20
- "packageManager": "pnpm@10.12.4+sha512.5ea8b0deed94ed68691c9bad4c955492705c5eeb8a87ef86bc62c74a26b037b08ff9570f108b2e4dbd1dd1a9186fea925e527f141c648e85af45631074680184",
20
+ "packageManager": "pnpm@10.29.3+sha512.498e1fb4cca5aa06c1dcf2611e6fafc50972ffe7189998c409e90de74566444298ffe43e6cd2acdc775ba1aa7cc5e092a8b7054c811ba8c5770f84693d33d2dc",
21
21
  "sideEffects": false,
22
22
  "type": "module",
23
23
  "main": "./dist/index.js",
@@ -49,28 +49,29 @@
49
49
  },
50
50
  "prettier": "@webdeveric/prettier-config",
51
51
  "dependencies": {
52
- "@commitlint/types": "^19.8.1",
53
- "cspell-lib": "^9.1.3"
52
+ "@commitlint/types": "^20.4.0",
53
+ "cspell-lib": "^9.6.4"
54
54
  },
55
55
  "devDependencies": {
56
- "@types/node": "^22.16.0",
57
- "@vitest/coverage-v8": "^3.2.4",
56
+ "@commitlint/lint": "^20.4.1",
57
+ "@types/node": "^22.19.11",
58
+ "@vitest/coverage-v8": "^4.0.18",
58
59
  "@webdeveric/eslint-config-ts": "^0.11.0",
59
60
  "@webdeveric/prettier-config": "^0.3.0",
60
- "conventional-changelog-conventionalcommits": "^9.0.0",
61
- "cspell": "^9.1.3",
61
+ "conventional-changelog-conventionalcommits": "^9.1.0",
62
+ "cspell": "^9.6.4",
62
63
  "eslint": "^8.57.1",
63
- "eslint-config-prettier": "^10.1.5",
64
+ "eslint-config-prettier": "^10.1.8",
64
65
  "eslint-import-resolver-typescript": "^4.4.4",
65
66
  "eslint-plugin-import": "^2.32.0",
66
67
  "husky": "^9.1.7",
67
- "lint-staged": "^16.1.2",
68
- "prettier": "^3.6.2",
69
- "rimraf": "^6.0.1",
70
- "semantic-release": "^24.2.6",
71
- "typescript": "^5.8.3",
72
- "validate-package-exports": "^0.12.0",
73
- "vitest": "^3.2.4"
68
+ "lint-staged": "^16.2.7",
69
+ "prettier": "^3.8.1",
70
+ "rimraf": "^6.1.2",
71
+ "semantic-release": "^25.0.3",
72
+ "typescript": "^5.9.3",
73
+ "validate-package-exports": "^0.18.0",
74
+ "vitest": "^4.0.18"
74
75
  },
75
76
  "peerDependencies": {
76
77
  "@commitlint/lint": ">=7.6.0"