-
Notifications
You must be signed in to change notification settings - Fork 15
/
commitlint.config.js
19 lines (19 loc) · 1.83 KB
/
commitlint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module.exports = {
rules: {
"type-enum": [2, "always", [':art:', ':zap:', ':fire:', ':bug:', ':ambulance:', ':sparkles:', ':memo:', ':rocket:', ':lipstick:', ':tada:', ':white_check_mark:', ':lock:', ':closed_lock_with_key:', ':bookmark:', ':rotating_light:', ':construction:', ':green_heart:', ':arrow_down:', ':arrow_up:', ':pushpin:', ':construction_worker:', ':chart_with_upwards_trend:', ':recycle:', ':heavy_plus_sign:', ':heavy_minus_sign:', ':wrench:', ':hammer:', ':globe_with_meridians:', ':pencil2:', ':poop:', ':rewind:', ':twisted_rightwards_arrows:', ':package:', ':alien:', ':truck:', ':page_facing_up:', ':boom:', ':bento:', ':wheelchair:', ':bulb:', ':beers:', ':speech_balloon:', ':card_file_box:', ':loud_sound:', ':mute:', ':busts_in_silhouette:', ':children_crossing:', ':building_construction:', ':iphone:', ':clown_face:', ':egg:', ':see_no_evil:', ':camera_flash:', ':alembic:', ':mag:', ':label:', ':seedling:', ':triangular_flag_on_post:', ':goal_net:', ':dizzy:', ':wastebasket:', ':passport_control:', ':adhesive_bandage:', ':monocle_face:', ':coffin:', ':test_tube:', ':necktie:', ':stethoscope:', ':bricks:', ':technologist:', ':money_with_wings:', ':thread:', ':safety_vest:']],
"body-leading-blank": [2, "always"],
"footer-leading-blank": [2, "always"],
"header-max-length": [2, "always", 72],
"scope-case": [2, "always", "lower-case"],
"subject-case": [2, "always", ["sentence-case"]],
"subject-empty": [2, "never"],
"subject-full-stop": [2, "never", ["."]],
"type-case": [2, "always", "lower-case"],
"type-empty": [2, "never"]
}, parserPreset: {
parserOpts: {
headerPattern: /^(:\w*:)(?:\((.*?)\))?\s((?:.*(?=\())|.*)(?:\(#(\d*)\))?/,
headerCorrespondence: ["type", "scope", "subject", "ticket"]
}
}
};