Skip to content

Commit d6a8d5f

Browse files
committed
refactor!: init project rewrite
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 777f134 commit d6a8d5f

File tree

117 files changed

+7387
-11897
lines changed

Some content is hidden

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

117 files changed

+7387
-11897
lines changed

.codecov.yml

+4-13
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
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
14-
layout: header,diff,flags,tree,footer
14+
layout: header,diff,flags,components,tree,footer
1515
require_base: false
1616
require_changes: false
1717
require_head: true
@@ -76,10 +76,6 @@ flags:
7676
carryforward: false
7777
paths:
7878
- src/
79-
node16:
80-
carryforward: false
81-
paths:
82-
- src/
8379

8480
github_checks:
8581
annotations: true
@@ -92,9 +88,4 @@ ignore:
9288
- src/types/
9389

9490
profiling:
95-
critical_files_paths:
96-
- src/attacher.ts
97-
- src/grammar.ts
98-
- src/lexer.ts
99-
- src/parser.ts
100-
- src/reader.ts
91+
critical_files_paths: []

.commitlintrc.cts

+7-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ import { scopes } from '@flex-development/commitlint-config'
1818
const config: UserConfig = {
1919
extends: ['@flex-development'],
2020
rules: {
21-
'scope-enum': [
22-
Severity.Error,
23-
'always',
24-
scopes(['attacher', 'grammar', 'lexer', 'parser', 'reader'])
25-
]
21+
'scope-enum': [Severity.Error, 'always', scopes([
22+
'attacher',
23+
'grammar',
24+
'lexer',
25+
'parser',
26+
'reader'
27+
])]
2628
}
2729
}
2830

.cspell.json

+2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
"ignorePaths": [
1616
"**/*.log",
1717
"**/*.snap",
18+
"**/*.wasm",
1819
"**/.*ignore",
1920
"**/.gitconfig",
2021
"**/CHANGELOG.md",
2122
"**/LICENSE.md",
2223
"**/RELEASE_NOTES.md",
24+
"**/scratch.*",
2325
".cspell.json",
2426
".dictionary.txt",
2527
".git/",

.dictionary.txt

+5-14
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,32 @@
1-
ardatan
21
attw
32
bdougie
43
cefc
54
codecov
65
commitlintrc
76
dedupe
87
dessant
9-
detab
108
docast
119
dohm
10+
dprint
1211
fbca
1312
ggshield
1413
gpgsign
1514
hmarr
1615
iife
17-
infile
16+
jchen
1817
jsdoc
19-
katas
20-
katas
21-
keyid
22-
larsgw
23-
lcov
18+
kaisugi
2419
lintstagedrc
20+
mdast
2521
mkbuild
2622
mlly
2723
nocheck
28-
npmrc
2924
nvmrc
3025
pathe
3126
pkgs
3227
preid
33-
psum
34-
stringifier
35-
tokenizes
36-
tscu
28+
shfmt
3729
tsdoc
38-
unist
3930
unstub
4031
vates
4132
vfile

.dprint.jsonc

+152
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
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": ["css", "html", "json5", "scss", "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+
"trailingCommas": "never"
67+
},
68+
"lineWidth": 80,
69+
"markdown": {
70+
"associations": ["**/*.{md,mdx}"],
71+
"emphasisKind": "asterisks",
72+
"ignoreDirective": "dprint-ignore",
73+
"ignoreEndDirective": "dprint-ignore-end",
74+
"ignoreFileDirective": "dprint-ignore-file",
75+
"ignoreStartDirective": "dprint-ignore-start",
76+
"lineWidth": 120,
77+
"strongKind": "asterisks",
78+
"textWrap": "maintain"
79+
},
80+
"newLineKind": "lf",
81+
"plugins": [
82+
"https://plugins.dprint.dev/typescript-0.88.10.wasm",
83+
"https://plugins.dprint.dev/json-0.19.1.wasm",
84+
"https://plugins.dprint.dev/markdown-0.16.3.wasm",
85+
"https://plugins.dprint.dev/exec-0.4.4.json@c207bf9b9a4ee1f0ecb75c594f774924baf62e8e53a2ce9d873816a408cecbf7"
86+
],
87+
"typescript": {
88+
"arrowFunction.useParentheses": "preferNone",
89+
"binaryExpression.linePerExpression": false,
90+
"binaryExpression.operatorPosition": "sameLine",
91+
"binaryExpression.spaceSurroundingBitwiseAndArithmeticOperator": true,
92+
"bracePosition": "sameLine",
93+
"commentLine.forceSpaceAfterSlashes": true,
94+
"constructSignature.spaceAfterNewKeyword": true,
95+
"constructor.spaceBeforeParentheses": false,
96+
"constructorType.spaceAfterNewKeyword": true,
97+
"doWhileStatement.spaceAfterWhileKeyword": true,
98+
"enumDeclaration.memberSpacing": "maintain",
99+
"exportDeclaration.forceMultiLine": false,
100+
"exportDeclaration.forceSingleLine": false,
101+
"exportDeclaration.sortNamedExports": "maintain",
102+
"exportDeclaration.spaceSurroundingNamedExports": true,
103+
"forInStatement.spaceAfterForKeyword": true,
104+
"forOfStatement.spaceAfterForKeyword": true,
105+
"forStatement.spaceAfterForKeyword": true,
106+
"forStatement.spaceAfterSemiColons": true,
107+
"functionDeclaration.spaceBeforeParentheses": false,
108+
"functionExpression.spaceAfterFunctionKeyword": false,
109+
"functionExpression.spaceBeforeParentheses": false,
110+
"getAccessor.spaceBeforeParentheses": false,
111+
"ifStatement.spaceAfterIfKeyword": true,
112+
"ignoreFileCommentText": "dprint-ignore-file",
113+
"ignoreNodeCommentText": "dprint-ignore",
114+
"importDeclaration.forceMultiLine": false,
115+
"importDeclaration.forceSingleLine": false,
116+
"importDeclaration.sortNamedImports": "maintain",
117+
"importDeclaration.spaceSurroundingNamedImports": true,
118+
"jsx.bracketPosition": "nextLine",
119+
"jsx.forceNewLinesSurroundingContent": false,
120+
"jsx.multiLineParens": "prefer",
121+
"jsx.quoteStyle": "preferSingle",
122+
"jsxExpressionContainer.spaceSurroundingExpression": false,
123+
"jsxSelfClosingElement.spaceBeforeSlash": true,
124+
"memberExpression.linePerExpression": false,
125+
"method.spaceBeforeParentheses": false,
126+
"module.sortExportDeclarations": "caseSensitive",
127+
"module.sortImportDeclarations": "caseSensitive",
128+
"newLineKind": "lf",
129+
"nextControlFlowPosition": "sameLine",
130+
"objectExpression.spaceSurroundingProperties": true,
131+
"objectPattern.spaceSurroundingProperties": true,
132+
"operatorPosition": "nextLine",
133+
"preferHanging": true,
134+
"preferSingleLine": false,
135+
"quoteProps": "asNeeded",
136+
"quoteStyle": "alwaysSingle",
137+
"semiColons": "asi",
138+
"setAccessor.spaceBeforeParentheses": false,
139+
"singleBodyPosition": "sameLine",
140+
"spaceAround": false,
141+
"spaceSurroundingProperties": true,
142+
"taggedTemplate.spaceBeforeLiteral": false,
143+
"trailingCommas": "never",
144+
"typeAnnotation.spaceBeforeColon": false,
145+
"typeAssertion.spaceBeforeExpression": false,
146+
"typeLiteral.separatorKind.singleLine": "semiColon",
147+
"typeLiteral.spaceSurroundingProperties": true,
148+
"useBraces": "maintain",
149+
"whileStatement.spaceAfterWhileKeyword": true
150+
},
151+
"useTabs": false
152+
}

.editorconfig

+9-6
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,20 @@ 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]
@@ -43,5 +46,5 @@ max_line_length = 130
4346
max_line_length = 100
4447

4548
# yaml
46-
[*.yml]
49+
[{*.yaml,*.yml}]
4750
max_line_length = 100

.eslintignore

+9-3
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,36 @@
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
1720
!**/.eslintrc*
21+
!**/.vitepress/
1822
!**/__fixtures__/**/dist/
1923
!**/__fixtures__/**/node_modules/
2024
!**/typings/**/dist/
2125
!.attw.json
2226
!.codecov.yml
2327
!.commitlintrc.*
2428
!.cspell.json
29+
!.dprint.*
2530
!.github/
2631
!.graphqlrc.yml
32+
!.grease*.*
2733
!.lintstagedrc.json
2834
!.markdownlint.jsonc
29-
!.prettierrc.json
35+
!.remarkrc.json
3036
!.vscode/
3137
!.yarnrc.yml

0 commit comments

Comments
 (0)