-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from M-Scott-Lassiter/next
Next
- Loading branch information
Showing
15 changed files
with
5,928 additions
and
2,639 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
module.exports = { | ||
types: [ | ||
{ | ||
value: 'build', | ||
name: 'build: Changes that affect the build system configuration, package scripts, or dev dependencies (i.e. adds/remove/modify/update)' | ||
}, | ||
{ | ||
value: 'ci', | ||
name: 'ci: Changes to CI configuration files and scripts (e.g. release configs, YAML scripts)' | ||
}, | ||
{ value: 'docs', name: 'docs: Documentation only changes' }, | ||
{ value: 'feat', name: 'feat: Adds a new feature' }, | ||
{ | ||
value: 'fix', | ||
name: 'fix: Fixes a bug in an existing feature. Also used for non-dev dependency updates.' | ||
}, | ||
{ | ||
value: 'perf', | ||
name: 'perf: A code change that improves performance' | ||
}, | ||
{ | ||
value: 'refactor', | ||
name: 'refactor: A code change that neither fixes a bug nor adds a feature' | ||
}, | ||
{ value: 'revert', name: 'revert: Revert to a commit' }, | ||
{ value: 'test', name: 'test: Add missing tests or correct existing tests' } | ||
], | ||
|
||
scopes: [ | ||
{ name: 'api' }, | ||
{ name: 'contributing' }, | ||
{ name: 'license' }, | ||
{ name: 'readme' }, | ||
{ name: 'security' } | ||
], | ||
|
||
allowTicketNumber: false, | ||
isTicketNumberRequired: false, | ||
ticketNumberPrefix: 'TICKET-', | ||
ticketNumberRegExp: '\\d{1,5}', | ||
|
||
// it needs to match the value for field type. Eg.: 'fix' | ||
/* | ||
scopeOverrides: { | ||
fix: [ | ||
{name: 'merge'}, | ||
{name: 'style'}, | ||
{name: 'e2eTest'}, | ||
{name: 'unitTest'} | ||
] | ||
}, | ||
*/ | ||
// override the messages, defaults are as follows | ||
messages: { | ||
type: "Select the type of change that you're committing:", | ||
scope: '\nDenote the SCOPE of this change (optional):', | ||
// used if allowCustomScopes is true | ||
customScope: 'Denote the SCOPE of this change:', | ||
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n', | ||
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n', | ||
breaking: 'List any BREAKING CHANGES (optional):\n', | ||
footer: 'List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n', | ||
confirmCommit: 'Are you sure you want to proceed with the commit above?' | ||
}, | ||
|
||
allowCustomScopes: true, | ||
allowBreakingChanges: ['feat', 'fix'], | ||
// skip any questions you want | ||
// skipQuestions: ['body'], | ||
|
||
// limit subject length | ||
subjectLimit: 100, | ||
// breaklineChar: '|', // It is supported for fields body and footer. | ||
footerPrefix: 'Resolves:' | ||
// askForBreakingChangeFirst : true, // default is false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,7 @@ body: | |
- 14 | ||
- 16 | ||
- 17 | ||
- 18 | ||
validations: | ||
required: true | ||
- type: textarea | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ name: CI Tests | |
|
||
on: | ||
push: | ||
branches: [main, next] | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"**/*.{js,ts}": ["npm run lint"], | ||
"**/*.{js,jsx,ts,tsx,json,html,css,scss,md,yml}": ["npm run format"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.