Skip to content

Commit b93a82c

Browse files
committed
chore: update project architecture
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 99c6dec commit b93a82c

File tree

89 files changed

+6967
-7712
lines changed

Some content is hidden

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

89 files changed

+6967
-7712
lines changed

.codecov.yml

Lines changed: 2 additions & 6 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: 3
88
wait_for_ci: true
99
require_ci_to_pass: true
1010

1111
comment:
12-
after_n_builds: 4
12+
after_n_builds: 3
1313
behavior: default
1414
layout: header,diff,flags,components,tree,footer
1515
require_base: false
@@ -92,10 +92,6 @@ flags:
9292
carryforward: false
9393
paths:
9494
- src/
95-
node16:
96-
carryforward: false
97-
paths:
98-
- src/
9995

10096
github_checks:
10197
annotations: true

.commitlintrc.cts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
* @see https://commitlint.js.org
55
*/
66

7-
import {
8-
RuleConfigSeverity as Severity,
9-
type UserConfig
10-
} from '@commitlint/types'
7+
import { RuleConfigSeverity, type UserConfig } from '@commitlint/types'
118
import { scopes } from '@flex-development/commitlint-config'
129

1310
/**
@@ -19,7 +16,7 @@ const config: UserConfig = {
1916
extends: ['@flex-development'],
2017
rules: {
2118
'scope-enum': [
22-
Severity.Error,
19+
RuleConfigSeverity.Error,
2320
'always',
2421
scopes(['analyze', 'docs', 'resolve', 'specifiers', 'syntax'])
2522
]

.cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"**/CHANGELOG.md",
2222
"**/LICENSE.md",
2323
"**/RELEASE_NOTES.md",
24+
"**/scratch.*",
2425
".cspell.json",
2526
".dictionary.txt",
2627
".git/",

.dictionary.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
algoliasearch
22
alogirthm
3-
ardatan
43
attw
54
bdougie
65
cefc
@@ -13,6 +12,7 @@ dequote
1312
dessant
1413
docast
1514
dohm
15+
dprint
1616
esmodules
1717
exactish
1818
fbca
@@ -23,12 +23,11 @@ hascjssyntax
2323
hasesmsyntax
2424
hmarr
2525
iife
26-
infile
2726
isbarespecifier
2827
isexportssugar
2928
isrelativespecifier
30-
keyid
31-
larsgw
29+
jchen
30+
kaisugi
3231
lcov
3332
lintstagedrc
3433
mkbuild
@@ -44,6 +43,7 @@ pkgs
4443
preid
4544
rext
4645
segement
46+
shfmt
4747
sindresorhus
4848
toabsolutespecifier
4949
todataurl

.dprint.jsonc

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

.editorconfig

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@ max_line_length = 120
3232

3333
# shellscript
3434
[*.sh]
35+
binary_next_line = true
36+
function_next_line = false
37+
keep_comments = true
38+
keep_padding = false
3539
max_line_length = 100
40+
shell_variant = 0
41+
space_redirects = false
42+
switch_case_indent = true
3643

3744
# snapshots
3845
[*.snap]
@@ -43,5 +50,5 @@ max_line_length = 130
4350
max_line_length = 100
4451

4552
# yaml
46-
[*.yml]
53+
[{*.yaml,*.yml}]
4754
max_line_length = 100

.eslintignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22
# https://eslint.org/docs/user-guide/configuring/ignoring-code#the-eslintignore-file
33

44
# DIRECTORIES & FILES
5+
**/*.patch
6+
**/*.sh
57
**/*.snap
68
**/*config.*.timestamp*
79
**/.DS_Store
8-
**/__tests__/report.json
9-
**/coverage/
1010
**/.temp/
11+
**/__tests__/report.*
12+
**/coverage/
1113
**/dist/
1214
**/node_modules/
1315
**/tsconfig*temp.json
16+
Brewfile
1417
yarn.lock
1518

1619
# NEGATED PATTERNS
@@ -22,11 +25,12 @@ yarn.lock
2225
!.codecov.yml
2326
!.commitlintrc.*
2427
!.cspell.json
28+
!.dprint.*
2529
!.github/
2630
!.graphqlrc.yml
31+
!.grease*.*
2732
!.lintstagedrc.json
2833
!.markdownlint.jsonc
29-
!.prettierrc.json
3034
!.vscode/
3135
!.yarnrc.yml
3236
!docs/.vitepress/

0 commit comments

Comments
 (0)