@codingame/commitlint-config-codingame
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -14,5 +14,5 @@ "use strict"; | ||
var conventionalConfig = require("@commitlint/config-conventional"); | ||
var semantic_release_rules_1 = require("@codingame/semantic-release-rules"); | ||
var typeEnum = semantic_release_rules_1["default"].map(function (rule) { return rule.type; }); | ||
var releaseRules = require("@codingame/semantic-release-rules"); | ||
var typeEnum = releaseRules.map(function (rule) { return rule.type; }); | ||
var config = __assign(__assign({}, conventionalConfig), { rules: __assign(__assign({}, conventionalConfig.rules), { 'type-enum': [2, 'always', typeEnum] }) }); | ||
module.exports = config; |
import * as conventionalConfig from '@commitlint/config-conventional' | ||
import releaseRules from '@codingame/semantic-release-rules' | ||
import * as releaseRules from '@codingame/semantic-release-rules' | ||
const typeEnum = releaseRules.map(rule => rule.type) | ||
const config = { | ||
const config: typeof conventionalConfig = { | ||
...conventionalConfig, | ||
@@ -8,0 +8,0 @@ rules: { |
{ | ||
"name": "@codingame/commitlint-config-codingame", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Default configuration for commit lint at CodinGame", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3414
8
46