From 4772989be3dec20b8eb8f328a5266584ba140a6e Mon Sep 17 00:00:00 2001 From: Bruce Markham <219281+brucificus@users.noreply.github.com> Date: Thu, 26 Mar 2020 22:38:35 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Allows=20Emoji=20Literals=20as?= =?UTF-8?q?=20Commit=20Type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commitlint.config.js | 140 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 139 insertions(+), 1 deletion(-) diff --git a/commitlint.config.js b/commitlint.config.js index 9b30d6b..c3e4716 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1 +1,139 @@ -module.exports = { extends: ["./node_modules/commitlint-config-gitmoji"] }; +module.exports = { + extends: ["./node_modules/commitlint-config-gitmoji"], + parserPreset: { + parserOpts: { + headerPattern: /^((:\w*:)|(([^\w\s\p{P}]{1,2})(?:[^\w\s\p{P}]{0,4})))(?:\((.*?)\))?\s((?:.*(?=\())|.*)(?:\(#(\d*)\))?/, + headerCorrespondence: ["type", "scope", "subject", "ticket"] + } + }, + rules: { + "type-enum": [ + 2, + "always", + [ + ":art:", + ":newspaper:", + ":pencil:", + ":memo:", + ":zap:", + ":fire:", + ":books:", + ":bug:", + ":ambulance:", + ":penguin:", + ":apple:", + ":checkered_flag:", + ":robot:", + ":green_ale:", + ":tractor:", + ":recycle:", + ":white_check_mark:", + ":microscope:", + ":green_heart:", + ":lock:", + ":arrow_up:", + ":arrow_down:", + ":fast_forward:", + ":rewind:", + ":rotating_light:", + ":lipstick:", + ":wheelchair:", + ":globe_with_meridians:", + ":construction:", + ":gem:", + ":bookmark:", + ":tada:", + ":loud_sound:", + ":mute:", + ":sparkles:", + ":speech_balloon:", + ":bulb:", + ":construction_worker:", + ":chart_with_upwards_trend:", + ":ribbon:", + ":rocket:", + ":heavy_minus_sign:", + ":heavy_plus_sign:", + ":wrench:", + ":hankey:", + ":leaves:", + ":bank:", + ":whale:", + ":twisted_rightwards_arrows:", + ":pushpin:", + ":busts_in_silhouette:", + ":children_crossing:", + ":iphone:", + ":clown_face:", + ":ok_hand:", + ":boom:", + ":bento:", + ":pencil2:", + ":package:", + ":alien:", + ":truck:", + ":age_facing_up:", + ":busts_in_silhouette:", + ":card_file_box:", + ":loud-sound:", + ":mute:", + ":egg:", + ":see-no-evil:", + ":camera-flash:", + ":alembic:", + ":mag:", + ":wheel-of-dharma:", + ":label:", + "🎨", + "⚡️", + "🔥", + "🐛", + "🚑", + "✨", + "📝", + "🚀", + "💄", + "🎉", + "✅", + "🔒", + "🍎", + "🐧", + "🏁", + "🤖", + "🍏", + "🔖", + "🚨", + "🚧", + "💚", + "⬇️", + "⬆️", + "👷", + "📈", + "🔨", + "➖", + "🐳", + "➕", + "🔧", + "🌐", + "✏️", + "💩", + "⏪", + "🔀", + "📦", + "👽", + "🚚", + "📄", + "💥", + "🍱", + "👌", + "♿️", + "💡", + "🍻", + "💬", + "🗃", + "🔊", + "🔇" + ] + ] + } +};