Skip to content

Commit

Permalink
Merge pull request #162 from axone-protocol/chore/rename-commitlint-mjs
Browse files Browse the repository at this point in the history
👷 Adopt .mjs extension for commitlint configuration
  • Loading branch information
ccamel authored Dec 31, 2024
2 parents ea3477f + 63253f4 commit 4f32568
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 97 deletions.
97 changes: 0 additions & 97 deletions commitlint.config.js

This file was deleted.

97 changes: 97 additions & 0 deletions commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
export default {
extends: ["@commitlint/config-conventional"],
parserPreset: {
parserOpts: {
headerPattern: /^(:\w+:|[\p{Emoji}])\s(\w+)/u,
headerCorrespondence: ["type", "subject"],
},
},
rules: {
"subject-case": [2, "always", "sentence-case"],
"type-enum": [
2,
"always",
[
":adhesive_bandage:",
":age_facing_up:",
":alembic:",
":alien:",
":ambulance:",
":arrow_down:",
":arrow_up:",
":art:",
":bank:",
":bento:",
":bookmark:",
":books:",
":boom:",
":bug:",
":bulb:",
":busts_in_silhouette:",
":busts_in_silhouette:",
":camera-flash:",
":card_file_box:",
":chart_with_upwards_trend:",
":checkered_flag:",
":children_crossing:",
":clown_face:",
":construction:",
":construction_worker:",
":egg:",
":fast_forward:",
":fire:",
":gem:",
":globe_with_meridians:",
":green_ale:",
":green_heart:",
":hankey:",
":heavy_minus_sign:",
":heavy_plus_sign:",
":iphone:",
":label:",
":leaves:",
":lipstick:",
":lock:",
":loud-sound:",
":loud_sound:",
":mag:",
":memo:",
":microscope:",
":mute:",
":mute:",
":newspaper:",
":ok_hand:",
":package:",
":page_facing_up:",
":pencil2:",
":pencil:",
":penguin:",
":pushpin:",
":recycle:",
":rewind:",
":ribbon:",
":robot:",
":rocket:",
":rotating_light:",
":see-no-evil:",
":sparkles:",
":speech_balloon:",
":tada:",
":tractor:",
":triangular_flag_on_post:",
":truck:",
":twisted_rightwards_arrows:",
":whale:",
":wheel-of-dharma:",
":wheelchair:",
":white_check_mark:",
":wrench:",
":zap:",
"🟨",
"🟩",
"🟥",
],
],
"header-max-length": [2, "always", 75],
},
};

0 comments on commit 4f32568

Please sign in to comment.