Skip to content

Commit

Permalink
refactor!: project rewrite
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Aug 25, 2024
1 parent 298a931 commit df60bc8
Show file tree
Hide file tree
Showing 282 changed files with 17,837 additions and 16,843 deletions.
1 change: 1 addition & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ ignore:
- '**/__tests__/**'
- '**/index.ts'
- src/interfaces/
- src/internal/stack-trace.browser.ts
- src/types/

profiling:
Expand Down
3 changes: 0 additions & 3 deletions .commitlintrc.json

This file was deleted.

26 changes: 26 additions & 0 deletions .commitlintrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* @file Configuration - commitlint
* @module config/commitlint
* @see https://commitlint.js.org
*/

import { RuleConfigSeverity, type UserConfig } from '@commitlint/types'
import { scopes } from '@flex-development/commitlint-config'

/**
* `commitlint` configuration object.
*
* @const {UserConfig} config
*/
const config: UserConfig = {
extends: ['@flex-development'],
rules: {
'scope-enum': [RuleConfigSeverity.Error, 'always', scopes([
'chore',
'e',
'errors'
])]
}
}

export default config
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"**/CHANGELOG.md",
"**/LICENSE.md",
"**/RELEASE_NOTES.md",
"**/scratch.*",
".cspell.json",
".dictionary.txt",
".git/",
Expand Down
23 changes: 14 additions & 9 deletions .dictionary.txt
Original file line number Diff line number Diff line change
@@ -1,44 +1,49 @@
ardatan
attw
bdougie
cefc
codecov
commitlintrc
dedupe
deno
dessant
devlop
docast
dohm
dprint
echarset
eftype
ehostdown
enonet
eremoteio
errno
errno
eshutdown
esocktnosupport
eunatch
fbca
fpathe
ggshield
gpgsign
hmarr
iife
infile
instanceof
keyid
larsgw
jchen
kaisugi
keyof
lcov
libuv
lintstagedrc
mkbuild
mlly
nocheck
npmrc
nvmrc
odfijos
pathe
pkgs
preid
tscu
shfmt
syscall
syscodes
unstub
vates
vfile
vitest
whatwg
yarnrc
147 changes: 147 additions & 0 deletions .dprint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
{
"$schema": "https://dprint.dev/schemas/v0.json",
"excludes": [
"!**/__fixtures__/**/dist/",
"!**/__fixtures__/**/node_modules/",
"!**/typings/**/dist/",
"!scratch.*",
"**/*.patch",
"**/*.snap",
"**/*config.*.timestamp*",
"**/.temp/",
"**/.vercel/",
"**/__fixtures__/git/**/*.txt",
"**/__tests__/benchmark.json",
"**/__tests__/report.json",
"**/__tests__/typecheck.json",
"**/coverage/",
"**/dist/",
"**/node_modules",
"**/tsconfig*temp.json",
".git/",
".husky/_/",
".yarn/",
"CHANGELOG.md",
"LICENSE.md",
"RELEASE_NOTES.md",
"yarn.lock"
],
"exec": {
"commands": [
{
"command": "node ./dprint/prettier.mjs {{file_path}}",
"exts": ["css", "html", "json5", "scss", "yaml", "yml"],
"stdin": true
},
{
"command": "node ./dprint/remark.mjs {{file_path}}",
"exts": ["md", "mdx"],
"stdin": true
},
{
"command": "node ./dprint/shfmt.mjs {{file_path}}",
"exts": ["sh", "zsh"],
"fileNames": [
".editorconfig",
".env",
".env.local",
".env.repo",
".eslintcache",
".eslintignore",
".gitattributes",
".gitconfig",
".gitignore",
".npmrc",
".nvmrc",
"Brewfile",
"commit-msg",
"pre-commit",
"pre-push"
],
"stdin": true
}
],
"cwd": "${configDir}"
},
"indentWidth": 2,
"json": {
"associations": ["**/*.{jsonc,json}"],
"array.preferSingleLine": false,
"commentLine.forceSpaceAfterSlashes": true,
"ignoreNodeCommentText": "dprint-ignore",
"object.preferSingleLine": false,
"trailingCommas": "never"
},
"lineWidth": 80,
"newLineKind": "lf",
"plugins": [
"https://plugins.dprint.dev/typescript-0.91.6.wasm",
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/exec-0.5.0.json@8d9972eee71fa1590e04873540421f3eda7674d0f1aae3d7c788615e7b7413d0"
],
"typescript": {
"arrowFunction.useParentheses": "preferNone",
"binaryExpression.linePerExpression": false,
"binaryExpression.operatorPosition": "sameLine",
"binaryExpression.spaceSurroundingBitwiseAndArithmeticOperator": true,
"bracePosition": "sameLine",
"commentLine.forceSpaceAfterSlashes": false,
"constructSignature.spaceAfterNewKeyword": true,
"constructor.spaceBeforeParentheses": false,
"constructorType.spaceAfterNewKeyword": true,
"doWhileStatement.spaceAfterWhileKeyword": true,
"enumDeclaration.memberSpacing": "maintain",
"exportDeclaration.forceMultiLine": "never",
"exportDeclaration.forceSingleLine": false,
"exportDeclaration.sortNamedExports": "maintain",
"exportDeclaration.spaceSurroundingNamedExports": true,
"forInStatement.spaceAfterForKeyword": true,
"forOfStatement.spaceAfterForKeyword": true,
"forStatement.spaceAfterForKeyword": true,
"forStatement.spaceAfterSemiColons": true,
"functionDeclaration.spaceBeforeParentheses": false,
"functionExpression.spaceAfterFunctionKeyword": false,
"functionExpression.spaceBeforeParentheses": false,
"getAccessor.spaceBeforeParentheses": false,
"ifStatement.spaceAfterIfKeyword": true,
"ignoreFileCommentText": "dprint-ignore-file",
"ignoreNodeCommentText": "dprint-ignore",
"importDeclaration.forceMultiLine": "never",
"importDeclaration.forceSingleLine": false,
"importDeclaration.sortNamedImports": "maintain",
"importDeclaration.spaceSurroundingNamedImports": true,
"jsx.bracketPosition": "nextLine",
"jsx.forceNewLinesSurroundingContent": false,
"jsx.multiLineParens": "prefer",
"jsx.quoteStyle": "preferSingle",
"jsxExpressionContainer.spaceSurroundingExpression": false,
"jsxSelfClosingElement.spaceBeforeSlash": true,
"memberExpression.linePerExpression": false,
"method.spaceBeforeParentheses": false,
"module.sortExportDeclarations": "caseSensitive",
"module.sortImportDeclarations": "caseSensitive",
"newLineKind": "lf",
"nextControlFlowPosition": "sameLine",
"objectExpression.spaceSurroundingProperties": true,
"objectPattern.spaceSurroundingProperties": true,
"operatorPosition": "nextLine",
"preferHanging": true,
"preferSingleLine": false,
"quoteProps": "asNeeded",
"quoteStyle": "alwaysSingle",
"semiColons": "asi",
"setAccessor.spaceBeforeParentheses": false,
"singleBodyPosition": "sameLine",
"spaceAround": false,
"spaceSurroundingProperties": true,
"taggedTemplate.spaceBeforeLiteral": false,
"trailingCommas": "never",
"typeAnnotation.spaceBeforeColon": false,
"typeAssertion.spaceBeforeExpression": false,
"typeLiteral.separatorKind.singleLine": "semiColon",
"typeLiteral.spaceSurroundingProperties": true,
"useBraces": "maintain",
"whileStatement.spaceAfterWhileKeyword": true
},
"useTabs": false
}
19 changes: 9 additions & 10 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,25 @@ spaces_around_operators = true
tab_width = 2
trim_trailing_whitespace = true

# handlebars
[*.hbs]
max_line_length = 100

# markdown
[*.md]
[{*.md,*.mdx}]
max_line_length = 120

# shellscript
[*.sh]
binary_next_line = true
function_next_line = false
keep_comments = true
keep_padding = false
max_line_length = 100
shell_variant = 0
space_redirects = false
switch_case_indent = true

# snapshots
[*.snap]
max_line_length = 130

# xml
[*.xml]
max_line_length = 100

# yaml
[*.yml]
[{*.yaml,*.yml}]
max_line_length = 100
3 changes: 3 additions & 0 deletions .env.vars
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# variables

GH_PROJECT_NUMBER=23
31 changes: 0 additions & 31 deletions .eslintignore

This file was deleted.

Loading

0 comments on commit df60bc8

Please sign in to comment.