@commitlint/config-angular-type-enum
Advanced tools
+11
-11
| const types = [ | ||
| 'build', | ||
| 'ci', | ||
| 'docs', | ||
| 'feat', | ||
| 'fix', | ||
| 'perf', | ||
| 'refactor', | ||
| 'revert', | ||
| 'style', | ||
| 'test', | ||
| "build", | ||
| "ci", | ||
| "docs", | ||
| "feat", | ||
| "fix", | ||
| "perf", | ||
| "refactor", | ||
| "revert", | ||
| "style", | ||
| "test", | ||
| ]; | ||
@@ -16,5 +16,5 @@ | ||
| rules: { | ||
| 'type-enum': [2, 'always', types], | ||
| "type-enum": [2, "always", types], | ||
| }, | ||
| value: () => types, | ||
| }; |
+3
-3
| { | ||
| "name": "@commitlint/config-angular-type-enum", | ||
| "type": "module", | ||
| "version": "19.8.0", | ||
| "version": "19.8.1", | ||
| "description": "Shareable commitlint config enforcing the angular commit convention types", | ||
@@ -35,5 +35,5 @@ "main": "index.js", | ||
| "devDependencies": { | ||
| "@commitlint/utils": "^19.8.0" | ||
| "@commitlint/utils": "^19.8.1" | ||
| }, | ||
| "gitHead": "e82f05a737626bb69979d14564f5ff601997f679" | ||
| "gitHead": "3c302008cabeb0b08cd246b2417a51a9d745a918" | ||
| } |
+2
-2
@@ -26,3 +26,3 @@ # @commitlint/config-angular-type-enum | ||
| // commitlint.config.js | ||
| const types = require('@commitlint/config-angular-type-enum'); | ||
| const types = require("@commitlint/config-angular-type-enum"); | ||
@@ -39,5 +39,5 @@ // Use as rule creating errors for non-allowed types | ||
| rules: { | ||
| 'type-enum': [1, 'always', types.values()], | ||
| "type-enum": [1, "always", types.values()], | ||
| }, | ||
| }; | ||
| ``` |