diff --git a/commitlint.config.cjs b/commitlint.config.cjs index 5dd4fc49..0b300245 100644 --- a/commitlint.config.cjs +++ b/commitlint.config.cjs @@ -3,12 +3,12 @@ module.exports = { plugins: [ { rules: { - 'jira-ticket': ({ subject }) => { + 'jira-ticket': ({ subject, scope }) => { const shouldContainJiraTicket = /TET-[0-9]{2,}/; const orNoJira = /NO-JIRA/; const isReleaseMessage = /release/ return [ - shouldContainJiraTicket.test(subject) || orNoJira.test(subject) || isReleaseMessage.test(subject), + shouldContainJiraTicket.test(subject) || orNoJira.test(subject) || isReleaseMessage.test(scope), `Your subject should contain Jira ticket (TET-XX) or NO-JIRA`, ]; }, diff --git a/src/index.ts b/src/index.ts index 249b5738..f44a5d0a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,3 +22,4 @@ export * from './components/SocialButton'; export * from './components/StatusDot'; export * from './components/TextInput'; export * from './components/Toast'; +export * from './tetrisly';