From 204b4a95db9ff3f790a98334d5272ee804667a28 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Thu, 14 May 2020 15:29:32 +0000 Subject: [PATCH 1/2] Restyled by clang-format --- config/tailwind.config.js | 9 +++++---- scripts/verifyCommitMsg.js | 15 +++++++++------ 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/config/tailwind.config.js b/config/tailwind.config.js index 864d333..3271cad 100644 --- a/config/tailwind.config.js +++ b/config/tailwind.config.js @@ -2,10 +2,11 @@ ** TailwindCSS Configuration File ** ** Docs: https://tailwindcss.com/docs/configuration - ** Default: https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js + ** Default: + *https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js */ module.exports = { - theme: {}, - variants: {}, - plugins: [] + theme : {}, + variants : {}, + plugins : [] } diff --git a/scripts/verifyCommitMsg.js b/scripts/verifyCommitMsg.js index f8d314e..35b90b3 100644 --- a/scripts/verifyCommitMsg.js +++ b/scripts/verifyCommitMsg.js @@ -4,16 +4,19 @@ const chalk = require('chalk') const msgPath = process.env.GIT_PARAMS const msg = require('fs').readFileSync(msgPath, 'utf-8').trim() -const commitRE = /^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(\(.+\))?: .{1,50}/ +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( - ` ${chalk.bgRed.white(' ERROR ')} ${chalk.red(`invalid commit message format.`)}\n\n` + - chalk.red(`Proper commit message format is required for automated changelog generation. Examples:\n\n`) + + ` ${chalk.bgRed.white(' ERROR ')} ${ + chalk.red(`invalid commit message format.`)}\n\n` + + chalk.red( + `Proper commit message format is required for automated changelog generation. Examples:\n\n`) + ` ${chalk.green(`feat(compiler): add 'comments' option`)}\n` + - ` ${chalk.green(`fix(v-model): handle events on blur (close #28)`)}\n\n` + - chalk.red(` See .github/commit-convention.md for more details.\n`) - ) + ` ${ + chalk.green(`fix(v-model): handle events on blur (close #28)`)}\n\n` + + chalk.red(` See .github/commit-convention.md for more details.\n`)) process.exit(1) } From e01a430683c30486dbf678c602a760445cd1698c Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Thu, 14 May 2020 15:29:33 +0000 Subject: [PATCH 2/2] Restyled by prettier --- config/tailwind.config.js | 6 +++--- scripts/verifyCommitMsg.js | 15 ++++++--------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/config/tailwind.config.js b/config/tailwind.config.js index 3271cad..83b99e0 100644 --- a/config/tailwind.config.js +++ b/config/tailwind.config.js @@ -6,7 +6,7 @@ *https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js */ module.exports = { - theme : {}, - variants : {}, - plugins : [] + theme: {}, + variants: {}, + plugins: [] } diff --git a/scripts/verifyCommitMsg.js b/scripts/verifyCommitMsg.js index 35b90b3..f8d314e 100644 --- a/scripts/verifyCommitMsg.js +++ b/scripts/verifyCommitMsg.js @@ -4,19 +4,16 @@ const chalk = require('chalk') const msgPath = process.env.GIT_PARAMS const msg = require('fs').readFileSync(msgPath, 'utf-8').trim() -const commitRE = - /^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(\(.+\))?: .{1,50}/ +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( - ` ${chalk.bgRed.white(' ERROR ')} ${ - chalk.red(`invalid commit message format.`)}\n\n` + - chalk.red( - `Proper commit message format is required for automated changelog generation. Examples:\n\n`) + + ` ${chalk.bgRed.white(' ERROR ')} ${chalk.red(`invalid commit message format.`)}\n\n` + + chalk.red(`Proper commit message format is required for automated changelog generation. Examples:\n\n`) + ` ${chalk.green(`feat(compiler): add 'comments' option`)}\n` + - ` ${ - chalk.green(`fix(v-model): handle events on blur (close #28)`)}\n\n` + - chalk.red(` See .github/commit-convention.md for more details.\n`)) + ` ${chalk.green(`fix(v-model): handle events on blur (close #28)`)}\n\n` + + chalk.red(` See .github/commit-convention.md for more details.\n`) + ) process.exit(1) }