Skip to content

Commit b713668

Browse files
committed
chore: refactor project architecture
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent d408641 commit b713668

File tree

92 files changed

+12975
-10993
lines changed

Some content is hidden

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

92 files changed

+12975
-10993
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: 20 additions & 8 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: 8
88
wait_for_ci: true
99
require_ci_to_pass: true
1010

1111
comment:
12-
after_n_builds: 4
12+
after_n_builds: 8
1313
behavior: default
1414
layout: header,diff,flags,tree,footer
1515
require_base: false
@@ -65,6 +65,18 @@ coverage:
6565
threshold: 0%
6666

6767
flags:
68+
node23:
69+
carryforward: false
70+
paths:
71+
- src/
72+
node22:
73+
carryforward: false
74+
paths:
75+
- src/
76+
node21:
77+
carryforward: false
78+
paths:
79+
- src/
6880
node20:
6981
carryforward: false
7082
paths:
@@ -77,6 +89,10 @@ flags:
7789
carryforward: false
7890
paths:
7991
- src/
92+
node17:
93+
carryforward: false
94+
paths:
95+
- src/
8096
node16:
8197
carryforward: false
8298
paths:
@@ -86,12 +102,8 @@ github_checks:
86102
annotations: true
87103

88104
ignore:
89-
- '**/__mocks__/**'
90-
- '**/__tests__/**'
91-
- '**/index.ts'
92-
- src/interfaces/
93-
- src/types/
105+
- '**/__tests__/'
94106

95107
profiling:
96108
critical_files_paths:
97-
- src/builtin-modules.ts
109+
- src/builtin-modules.mts

.commitlintrc.cts renamed to .commitlintrc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { scopes } from '@flex-development/commitlint-config'
1818
const config: UserConfig = {
1919
extends: ['@flex-development'],
2020
rules: {
21-
'scope-enum': [Severity.Error, 'always', scopes(['builtins'])]
21+
'scope-enum': [Severity.Error, 'always', scopes(['builtins', 'chore'])]
2222
}
2323
}
2424

.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: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
ardatan
21
attw
3-
bdougie
42
cefc
53
codecov
64
commitlintrc
75
dedupe
6+
deno
87
dessant
8+
devlop
9+
docast
910
dohm
11+
dprint
1012
fbca
1113
ggshield
1214
gpgsign
1315
hmarr
1416
iife
15-
infile
16-
keyid
17-
larsgw
17+
jchen
18+
kaisugi
1819
lcov
1920
lintstagedrc
2021
mkbuild
21-
mlly
22-
nocheck
23-
npmrc
2422
nvmrc
2523
pathe
2624
pkgs
2725
preid
28-
tscu
26+
remarkrc
27+
shfmt
2928
unstub
3029
vates
30+
vfile
3131
vitest
3232
yarnrc

.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+
# repository variables
2+
3+
GH_PROJECT_NUMBER=24

.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=''

.eslintignore

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

0 commit comments

Comments
 (0)