This repository has been archived by the owner on Aug 16, 2022. It is now read-only.
-
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.
- Loading branch information
0 parents
commit 84e8d07
Showing
74 changed files
with
14,738 additions
and
0 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,95 @@ | ||
import type { UserConfig } from '@commitlint/types' | ||
|
||
/** | ||
* @file Commitlint Configuration | ||
* @see https://commitlint.js.org/#/guides-local-setup | ||
* @see https://commitlint.js.org/#/reference-configuration | ||
*/ | ||
|
||
const config: UserConfig = { | ||
/** | ||
* Enable default ignore rules. | ||
*/ | ||
defaultIgnores: true, | ||
|
||
/** | ||
* IDs of commitlint configurations to extend. | ||
*/ | ||
extends: ['@commitlint/config-conventional'], | ||
|
||
/** | ||
* Name of formatter package. | ||
*/ | ||
formatter: '@commitlint/format', | ||
|
||
/** | ||
* Functions that return true if commitlint should ignore the given message. | ||
*/ | ||
ignores: [], | ||
|
||
/** | ||
* Rules to test commits against. | ||
* | ||
* @see https://commitlint.js.org/#/reference-rules | ||
*/ | ||
rules: { | ||
/** | ||
* Scope casing. | ||
*/ | ||
'scope-case': [2, 'always', 'kebab-case'], | ||
|
||
/** | ||
* Commit scopes. | ||
*/ | ||
'scope-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'cjs', | ||
'deploy', | ||
'deps', | ||
'deps-dev', | ||
'deps-opt', | ||
'deps-peer', | ||
'esm', | ||
'github', | ||
'hybrid', | ||
'release', | ||
'scripts', | ||
'tests', | ||
'tools', | ||
'typescript', | ||
'workflows', | ||
'yarn' | ||
] | ||
], | ||
|
||
/** | ||
* Commit message subject casing. | ||
*/ | ||
'subject-case': [1, 'always', 'lower-case'], | ||
|
||
/** | ||
* Rules for valid commit types. | ||
*/ | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'build', | ||
'chore', | ||
'ci', | ||
'docs', | ||
'feat', | ||
'fix', | ||
'perf', | ||
'refactor', | ||
'revert', | ||
'style', | ||
'test' | ||
] | ||
] | ||
} | ||
} | ||
|
||
export default config |
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,32 @@ | ||
# Environment Variables - Project Defaults | ||
# | ||
# References: | ||
# | ||
# - https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/dotenv | ||
|
||
NODE_ENV=development | ||
# Fixes `YN0000: Strings should avoid referencing the node_modules directory` | ||
# warning during the `yarn check:install` lifecycle | ||
NODE_MODULES=node_modules | ||
NPM_TOKEN=$NPM_TOKEN_FLDV | ||
PAT_GPR=$PAT_GPR_FLDV | ||
|
||
# NODE_OPTIONS - Use ESM | ||
# See: https://github.com/TypeStrong/ts-node/issues/1007 | ||
if [ -f "./node_modules/ts-node/esm.mjs" ]; then | ||
# Silence warnings | ||
NODE_NO_WARNINGS=1 | ||
|
||
# Import JSON modules | ||
JSON_MODULES='' | ||
[ !$GITHUB_ACTIONS ] && JSON_MODULES='--experimental-json-modules' | ||
|
||
# Don't require imported modules to include extensions | ||
SPECIFIER_RESOLUTION='--es-module-specifier-resolution node' | ||
|
||
# Use custom ESM loader | ||
LOADER="--loader ./tools/loaders/esm.mjs" | ||
|
||
# Specify Node options | ||
NODE_OPTIONS="$JSON_MODULES $SPECIFIER_RESOLUTION $LOADER" | ||
fi |
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,3 @@ | ||
# Environment Variables - Project - `production` | ||
|
||
NODE_ENV=production |
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,7 @@ | ||
# Environment Variables - Project - `test` | ||
# | ||
# References: | ||
# | ||
# - https://jestjs.io/docs/ecmascript-modules | ||
|
||
NODE_ENV=test |
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,13 @@ | ||
# ESLint Ignore | ||
# https://eslint.org/docs/user-guide/configuring/ignoring-code | ||
|
||
**/.yarn/* | ||
**/build/* | ||
**/cjs/* | ||
**/esm/* | ||
**/node_modules/* | ||
**/types/* | ||
|
||
**/CHANGELOG.md | ||
|
||
!/src/types/* |
Oops, something went wrong.