Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Mar 12, 2024
1 parent 6b6195f commit 38b6cfb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion playground/src/components/TheSlideOver.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
} from '@headlessui/vue'
import { XMarkIcon } from '@heroicons/vue/24/outline'
defineProps<{ open: boolean }>()
const emit = defineEmits(['close'])
const open = defineModel<boolean>('open', { default: false })
</script>

<template>
Expand Down
13 changes: 6 additions & 7 deletions scripts/verifyCommit.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ const commitRE
= /^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(\(.+\))?!?: .{1,50}/

if (!commitRE.test(msg)) {
console.log()
console.error(
` ${bgRedWhite} ERROR ${reset} ${red}invalid commit message format.${reset}\n\n`
+ `${red} Proper commit message format is required for automated changelog generation. Examples:\n\n`
+ ` ${green}feat: add disableRoot option${reset}\n`
+ ` ${green}fix(view): handle keep-alive with aborted navigations (close #28)${reset}\n\n`
+ `${red} See .github/commit-convention.md for more details.${reset}\n`,
console.error(`\n`
+ ` ${bgRedWhite} ERROR ${reset} ${red}invalid commit message format.${reset}\n\n`
+ `${red} Proper commit message format is required for automated changelog generation. Examples:\n\n`
+ ` ${green}feat: add disableRoot option${reset}\n`
+ ` ${green}fix(view): handle keep-alive with aborted navigations (close #28)${reset}\n\n`
+ `${red} See .github/commit-convention.md for more details.${reset}\n`,
)
process.exit(1)
}

0 comments on commit 38b6cfb

Please sign in to comment.