Skip to content

Commit 90d6805

Browse files
committed
refactor!: api
- closes #253 - closes #291 - closes #301 - closes #321 Signed-off-by: Lexus Drumgold <[email protected]>
1 parent c1a96f5 commit 90d6805

File tree

214 files changed

+13475
-13387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+13475
-13387
lines changed

.attw.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"color": true,
33
"emoji": true,
44
"format": "ascii",
5-
"ignoreRules": ["cjs-resolves-to-esm"],
5+
"ignoreRules": ["cjs-resolves-to-esm", "internal-resolution-error"],
66
"summary": true
77
}

.codecov.yml

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
---
55
codecov:
66
notify:
7-
after_n_builds: 4
7+
after_n_builds: 2
88
wait_for_ci: true
99
require_ci_to_pass: true
1010

1111
comment:
12-
after_n_builds: 4
12+
after_n_builds: 2
1313
behavior: default
1414
layout: header,diff,flags,components,tree,footer
1515
require_base: false
@@ -24,14 +24,10 @@ component_management:
2424
- type: project
2525
target: 100%
2626
individual_components:
27-
- component_id: internal
28-
name: internal
27+
- component_id: lib
28+
name: lib
2929
paths:
30-
- src/internal/*.ts
31-
- component_id: utils
32-
name: utils
33-
paths:
34-
- src/utils/*.ts
30+
- src/lib/*.mts
3531

3632
coverage:
3733
precision: 2
@@ -80,19 +76,11 @@ coverage:
8076
threshold: 0%
8177

8278
flags:
83-
node20:
84-
carryforward: false
85-
paths:
86-
- src/
87-
node19:
88-
carryforward: false
89-
paths:
90-
- src/
91-
node18:
79+
node23:
9280
carryforward: false
9381
paths:
9482
- src/
95-
node16:
83+
node22:
9684
carryforward: false
9785
paths:
9886
- src/
@@ -101,12 +89,15 @@ github_checks:
10189
annotations: true
10290

10391
ignore:
92+
- '**/*.d.mts'
10493
- '**/__mocks__/**'
10594
- '**/__tests__/**'
106-
- '**/index.ts'
107-
- src/interfaces/
108-
- src/types/
95+
- '**/index.mts'
96+
- '**/interfaces/**'
97+
- '**/types/**'
98+
- '!src/index.mts'
99+
- src/internal/*.browser.mts
109100

110101
profiling:
111102
critical_files_paths:
112-
- src/utils/*.ts
103+
- src/lib/*.mts

.commitlintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.commitlintrc.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* @file Configuration - commitlint
3+
* @module config/commitlint
4+
* @see https://commitlint.js.org
5+
*/
6+
7+
import { RuleConfigSeverity, type UserConfig } from '@commitlint/types'
8+
import { scopes } from '@flex-development/commitlint-config'
9+
10+
/**
11+
* `commitlint` configuration object.
12+
*
13+
* @const {UserConfig} config
14+
*/
15+
const config: UserConfig = {
16+
extends: ['@flex-development'],
17+
rules: {
18+
'scope-enum': [RuleConfigSeverity.Error, 'always', scopes(['chore'])]
19+
}
20+
}
21+
22+
export default config

.cspell.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
"failFast": false,
1414
"flagWords": [],
1515
"ignorePaths": [
16-
"**/*.log",
16+
"**/*.patch",
1717
"**/*.snap",
18+
"**/*.wasm",
1819
"**/.*ignore",
1920
"**/.gitconfig",
2021
"**/CHANGELOG.md",
@@ -26,15 +27,10 @@
2627
".husky/_/",
2728
".vscode/settings.json",
2829
".yarn/",
29-
"dist/",
3030
"patches/",
3131
"yarn.lock"
3232
],
33-
"ignoreRegExpList": [
34-
"/@flex-development\\/.*/",
35-
"/from\\s+(['\"]).*\\1/",
36-
"import\\(.*\\)"
37-
],
33+
"ignoreRegExpList": [],
3834
"ignoreWords": [],
3935
"language": "en-US",
4036
"patterns": [],

.dictionary.txt

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
1-
ardatan
21
attw
3-
bdougie
42
cefc
53
codecov
64
commitlintrc
7-
customizer
85
dedupe
96
dessant
7+
devlop
8+
docast
109
dohm
10+
dprint
1111
fbca
1212
ggshield
1313
gpgsign
1414
hmarr
15-
iife
16-
infile
17-
keyid
15+
jchen
16+
kaisugi
1817
ksort
19-
larsgw
2018
lcov
21-
lintstagedrc
2219
mkbuild
23-
mlly
24-
nocheck
25-
npmrc
2620
nvmrc
27-
pathe
2821
pkgs
2922
preid
30-
tsconfigs
31-
tscu
23+
remarkrc
24+
sarif
25+
shfmt
3226
unstub
3327
vates
3428
vitest

.dprint.jsonc

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
{
2+
"$schema": "https://dprint.dev/schemas/v0.json",
3+
"excludes": [
4+
"!scratch.*",
5+
"**/*.patch",
6+
"**/*.snap",
7+
"**/CHANGELOG.md",
8+
"**/LICENSE.md",
9+
"**/RELEASE_NOTES.md",
10+
".git/",
11+
".husky/_/",
12+
".yarn/",
13+
"yarn.lock"
14+
],
15+
"exec": {
16+
"commands": [
17+
{
18+
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/prettier.mts {{file_path}}",
19+
"exts": ["css", "html", "json5", "scss", "yaml", "yml"],
20+
"stdin": true
21+
},
22+
{
23+
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/remark.mts {{file_path}}",
24+
"exts": ["md", "mdx"],
25+
"stdin": true
26+
},
27+
{
28+
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/shfmt.mts {{file_path}}",
29+
"exts": ["sh", "zsh"],
30+
"fileNames": [
31+
".editorconfig",
32+
".env",
33+
".env.local",
34+
".env.repo",
35+
".eslintcache",
36+
".eslintignore",
37+
".gitattributes",
38+
".gitconfig",
39+
".gitignore",
40+
".npmrc",
41+
".nvmrc",
42+
"Brewfile",
43+
"commit-msg",
44+
"pre-commit",
45+
"pre-push"
46+
],
47+
"stdin": true
48+
}
49+
],
50+
"cwd": "${configDir}"
51+
},
52+
"indentWidth": 2,
53+
"json": {
54+
"associations": ["**/*.{jsonc,json}"],
55+
"array.preferSingleLine": false,
56+
"commentLine.forceSpaceAfterSlashes": true,
57+
"ignoreNodeCommentText": "dprint-ignore",
58+
"object.preferSingleLine": false,
59+
"trailingCommas": "never"
60+
},
61+
"lineWidth": 80,
62+
"newLineKind": "lf",
63+
"plugins": [
64+
"https://plugins.dprint.dev/typescript-0.91.6.wasm",
65+
"https://plugins.dprint.dev/json-0.19.3.wasm",
66+
"https://plugins.dprint.dev/exec-0.5.0.json@8d9972eee71fa1590e04873540421f3eda7674d0f1aae3d7c788615e7b7413d0"
67+
],
68+
"typescript": {
69+
"arrowFunction.useParentheses": "preferNone",
70+
"binaryExpression.linePerExpression": false,
71+
"binaryExpression.operatorPosition": "sameLine",
72+
"binaryExpression.spaceSurroundingBitwiseAndArithmeticOperator": true,
73+
"bracePosition": "sameLine",
74+
"commentLine.forceSpaceAfterSlashes": false,
75+
"constructSignature.spaceAfterNewKeyword": true,
76+
"constructor.spaceBeforeParentheses": false,
77+
"constructorType.spaceAfterNewKeyword": true,
78+
"doWhileStatement.spaceAfterWhileKeyword": true,
79+
"enumDeclaration.memberSpacing": "maintain",
80+
"exportDeclaration.forceMultiLine": "never",
81+
"exportDeclaration.forceSingleLine": false,
82+
"exportDeclaration.sortNamedExports": "maintain",
83+
"exportDeclaration.spaceSurroundingNamedExports": true,
84+
"forInStatement.spaceAfterForKeyword": true,
85+
"forOfStatement.spaceAfterForKeyword": true,
86+
"forStatement.spaceAfterForKeyword": true,
87+
"forStatement.spaceAfterSemiColons": true,
88+
"functionDeclaration.spaceBeforeParentheses": false,
89+
"functionExpression.spaceAfterFunctionKeyword": false,
90+
"functionExpression.spaceBeforeParentheses": false,
91+
"getAccessor.spaceBeforeParentheses": false,
92+
"ifStatement.spaceAfterIfKeyword": true,
93+
"ignoreFileCommentText": "dprint-ignore-file",
94+
"ignoreNodeCommentText": "dprint-ignore",
95+
"importDeclaration.forceMultiLine": "never",
96+
"importDeclaration.forceSingleLine": false,
97+
"importDeclaration.sortNamedImports": "maintain",
98+
"importDeclaration.spaceSurroundingNamedImports": true,
99+
"jsx.bracketPosition": "nextLine",
100+
"jsx.forceNewLinesSurroundingContent": false,
101+
"jsx.multiLineParens": "prefer",
102+
"jsx.quoteStyle": "preferSingle",
103+
"jsxExpressionContainer.spaceSurroundingExpression": false,
104+
"jsxSelfClosingElement.spaceBeforeSlash": true,
105+
"memberExpression.linePerExpression": false,
106+
"method.spaceBeforeParentheses": false,
107+
"module.sortExportDeclarations": "caseSensitive",
108+
"module.sortImportDeclarations": "caseSensitive",
109+
"newLineKind": "lf",
110+
"nextControlFlowPosition": "sameLine",
111+
"objectExpression.spaceSurroundingProperties": true,
112+
"objectPattern.spaceSurroundingProperties": true,
113+
"operatorPosition": "nextLine",
114+
"preferHanging": true,
115+
"preferSingleLine": false,
116+
"quoteProps": "asNeeded",
117+
"quoteStyle": "alwaysSingle",
118+
"semiColons": "asi",
119+
"setAccessor.spaceBeforeParentheses": false,
120+
"singleBodyPosition": "sameLine",
121+
"spaceAround": false,
122+
"spaceSurroundingProperties": true,
123+
"taggedTemplate.spaceBeforeLiteral": false,
124+
"trailingCommas": "never",
125+
"typeAnnotation.spaceBeforeColon": false,
126+
"typeAssertion.spaceBeforeExpression": false,
127+
"typeLiteral.separatorKind.singleLine": "semiColon",
128+
"typeLiteral.spaceSurroundingProperties": true,
129+
"useBraces": "maintain",
130+
"whileStatement.spaceAfterWhileKeyword": true
131+
},
132+
"useTabs": false
133+
}

.editorconfig

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,25 @@ spaces_around_operators = true
2222
tab_width = 2
2323
trim_trailing_whitespace = true
2424

25-
# handlebars
26-
[*.hbs]
27-
max_line_length = 100
28-
2925
# markdown
30-
[*.md]
26+
[{*.md,*.mdx}]
3127
max_line_length = 120
3228

3329
# shellscript
3430
[*.sh]
31+
binary_next_line = true
32+
function_next_line = false
33+
keep_comments = true
34+
keep_padding = false
3535
max_line_length = 100
36+
shell_variant = 0
37+
space_redirects = false
38+
switch_case_indent = true
3639

3740
# snapshots
3841
[*.snap]
3942
max_line_length = 130
4043

41-
# xml
42-
[*.xml]
43-
max_line_length = 100
44-
4544
# yaml
46-
[*.yml]
45+
[{*.yaml,*.yml}]
4746
max_line_length = 100

.env.vars

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# variables
2+
3+
GH_PROJECT_NUMBER=25

.env.zsh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@
66
# - https://homebrew-file.readthedocs.io/en/latest/usage.html
77

88
[ -f $PWD/.env.repo ] && source $PWD/.env.repo
9+
[ -f $PWD/.env.vars ] && source $PWD/.env.vars
910
HOMEBREW_BREWFILE=./Brewfile
1011
NODE_NO_WARNINGS=1
12+
NODE_OPTIONS='--experimental-strip-types --experimental-transform-types'

0 commit comments

Comments
 (0)