Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
chore: first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Oct 9, 2021
0 parents commit 84e8d07
Show file tree
Hide file tree
Showing 74 changed files with 14,738 additions and 0 deletions.
95 changes: 95 additions & 0 deletions .commitlintrc.ts
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
32 changes: 32 additions & 0 deletions .env
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
3 changes: 3 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Environment Variables - Project - `production`

NODE_ENV=production
7 changes: 7 additions & 0 deletions .env.test
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
13 changes: 13 additions & 0 deletions .eslintignore
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/*
Loading

0 comments on commit 84e8d07

Please sign in to comment.