Skip to content

Commit 9730408

Browse files
committed
chore: update project architecture
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 5db5d52 commit 9730408

24 files changed

+1285
-1120
lines changed

.commitlintrc.json

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[
1212
"cjs",
1313
"deps",
14+
"deps-bundle",
1415
"deps-dev",
1516
"deps-opt",
1617
"deps-peer",
@@ -19,6 +20,7 @@
1920
"github",
2021
"hybrid",
2122
"native",
23+
"patches",
2224
"pkg",
2325
"ponyfill",
2426
"release",

.cspell.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@
1414
"flagWords": [],
1515
"ignorePaths": [
1616
"**/*.snap",
17+
"**/.gitconfig",
1718
"**/.gitignore",
19+
"**/.gitkeep",
20+
"**/.npmignore",
1821
".cspell.json",
1922
".env*",
23+
".eslintignore",
2024
".git/",
2125
".husky/_/",
26+
".markdownlintignore",
27+
".nvmrc",
28+
".prettierignore",
2229
".yarn/",
2330
"CHANGELOG.md",
2431
"LICENSE.md",
@@ -27,13 +34,13 @@
2734
"patches/",
2835
"yarn.lock"
2936
],
30-
"ignoreRegExpList": ["/from\\s+(['\"]).*\\1/"],
37+
"ignoreRegExpList": ["/@flex-development\\/.*/", "/from\\s+(['\"]).*\\1/"],
3138
"ignoreWords": [],
3239
"language": "en-US",
3340
"patterns": [],
3441
"readonly": true,
3542
"useGitignore": true,
3643
"usePnP": false,
3744
"version": "0.2",
38-
"words": ["fldv"]
45+
"words": ["fldv", "flexdevelopmentllc"]
3946
}

.dictionary.txt

+1-15
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1+
anson
12
ardatan
2-
autocrlf
3-
autosetuprebase
4-
bdel
5-
bdelr
63
bdougie
7-
bren
84
cefc
9-
chbfeat
10-
chbfix
11-
chbhotfix
12-
chbrelease
135
commitlintrc
146
dawidd
157
dedupe
@@ -18,7 +10,6 @@ dohm
1810
esbenp
1911
esbuild
2012
fbca
21-
fpnv
2213
gpgsign
2314
graphqlrc
2415
hmarr
@@ -28,17 +19,12 @@ larsgw
2819
lcov
2920
micnncim
3021
mkbuild
31-
mlly
3222
nocheck
3323
npmrc
3424
nums
35-
nvmrc
36-
ohmyzsh
3725
pkgs
3826
preid
39-
safecrlf
4027
syncer
41-
tspaths
4228
vates
4329
vitest
4430
vsicons

.editorconfig

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,35 @@
11
# EDITORCONFIG
22
# https://editorconfig.org
3+
# https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
34

45
# indicate top-most editorconfig file
56
root = true
67

78
# universal rules
89
[*]
9-
charset = 'utf-8'
10+
charset = utf-8
11+
continuation_indent_size = 2
12+
curly_bracket_next_line = false
1013
end_of_line = lf
14+
indent_brace_style = BSD
1115
indent_size = 2
12-
indent_style = 'space'
16+
indent_style = space
1317
insert_final_newline = true
1418
max_line_length = 80
19+
quote_type = single
20+
spaces_around_brackets = inside
21+
spaces_around_operators = true
22+
tab_width = 2
1523
trim_trailing_whitespace = true
1624

1725
# handlebars
1826
[*.hbs]
1927
max_line_length = 100
2028

29+
# markdown
30+
[*.md]
31+
max_line_length = 120
32+
2133
# shellscript
2234
[*.sh]
2335
max_line_length = 100

.eslintrc.base.cjs

+18-16
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ const config = {
214214
2,
215215
{
216216
allowInGenericTypeArguments: true,
217-
allowAsThisParameter: false
217+
allowAsThisParameter: true
218218
}
219219
],
220220
'@typescript-eslint/no-loop-func': 2,
@@ -281,7 +281,7 @@ const config = {
281281
'@typescript-eslint/no-var-requires': 2,
282282
'@typescript-eslint/padding-line-between-statements': 0,
283283
'@typescript-eslint/prefer-as-const': 2,
284-
'@typescript-eslint/prefer-enum-initializers': 2,
284+
'@typescript-eslint/prefer-enum-initializers': 0,
285285
'@typescript-eslint/prefer-for-of': 2,
286286
'@typescript-eslint/prefer-function-type': 2,
287287
'@typescript-eslint/prefer-includes': 0,
@@ -320,7 +320,8 @@ const config = {
320320
'jsdoc/check-access': 1,
321321
'jsdoc/check-alignment': 1,
322322
'jsdoc/check-examples': 0,
323-
'jsdoc/check-indentation': [1, { excludeTags: ['description', 'example'] }],
323+
// https://github.com/gajus/eslint-plugin-jsdoc/issues/541
324+
'jsdoc/check-indentation': 0,
324325
'jsdoc/check-line-alignment': 1,
325326
'jsdoc/check-param-names': [
326327
1,
@@ -337,7 +338,7 @@ const config = {
337338
'jsdoc/check-tag-names': [
338339
1,
339340
{
340-
definedTags: ['visibleName'],
341+
definedTags: ['next', 'visibleName'],
341342
jsxTags: jsx
342343
}
343344
],
@@ -403,6 +404,7 @@ const config = {
403404
enableFixer: true,
404405
enableRestElementFixer: true,
405406
enableRootFixer: true,
407+
exemptedBy: ['inheritdoc', 'this'],
406408
unnamedRootBase: ['param'],
407409
useDefaultObjectProperties: true
408410
}
@@ -415,7 +417,7 @@ const config = {
415417
1,
416418
{
417419
exemptAsync: false,
418-
exemptGenerators: false,
420+
exemptGenerators: true,
419421
reportMissingReturnForUndefinedTypes: false
420422
}
421423
],
@@ -594,7 +596,7 @@ const config = {
594596
'unicorn/no-thenable': 2,
595597
'unicorn/no-this-assignment': 2,
596598
'unicorn/no-unreadable-array-destructuring': 2,
597-
'unicorn/no-unsafe-regex': 2,
599+
'unicorn/no-unsafe-regex': 0,
598600
'unicorn/no-unused-properties': 2,
599601
'unicorn/no-useless-fallback-in-spread': 2,
600602
'unicorn/no-useless-length-check': 2,
@@ -626,7 +628,7 @@ const config = {
626628
'unicorn/prefer-optional-catch-binding': 2,
627629
'unicorn/prefer-prototype-methods': 2,
628630
'unicorn/prefer-reflect-apply': 2,
629-
'unicorn/prefer-regexp-test': 2,
631+
'unicorn/prefer-regexp-test': 0,
630632
'unicorn/prefer-set-has': 2,
631633
'unicorn/prefer-spread': 2,
632634
'unicorn/prefer-string-replace-all': 0,
@@ -709,7 +711,7 @@ const config = {
709711
'@typescript-eslint/no-unnecessary-condition': [
710712
2,
711713
{
712-
allowConstantLoopConditions: false,
714+
allowConstantLoopConditions: true,
713715
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false
714716
}
715717
],
@@ -922,7 +924,7 @@ const config = {
922924
}
923925
},
924926
{
925-
files: ['*.json5', '*.jsonc'],
927+
files: ['*.jsonc'],
926928
rules: {
927929
'jsonc/no-comments': 0
928930
}
@@ -1014,6 +1016,7 @@ const config = {
10141016
plugins: ['chai-expect', 'jest-formatting'],
10151017
rules: {
10161018
'@typescript-eslint/no-base-to-string': 0,
1019+
'@typescript-eslint/no-empty-function': 0,
10171020
'@typescript-eslint/no-unused-expressions': 0,
10181021
'@typescript-eslint/restrict-template-expressions': 0,
10191022
'@typescript-eslint/unbound-method': 0,
@@ -1033,9 +1036,10 @@ const config = {
10331036
'unicorn/consistent-destructuring': 0,
10341037
'unicorn/explicit-length-check': 0,
10351038
'unicorn/no-array-for-each': 0,
1039+
'unicorn/no-useless-undefined': 0,
10361040
'unicorn/prefer-at': 0,
10371041
'unicorn/prefer-dom-node-append': 0,
1038-
'unicorn/no-useless-undefined': 0
1042+
'unicorn/string-content': 0
10391043
}
10401044
},
10411045
{
@@ -1097,12 +1101,6 @@ const config = {
10971101
'yml/key-name-casing': 0
10981102
}
10991103
},
1100-
{
1101-
files: ['helpers/tsconfig-paths.cjs'],
1102-
rules: {
1103-
'node/no-deprecated-api': 0
1104-
}
1105-
},
11061104
{
11071105
files: ['tsconfig*.json'],
11081106
rules: {
@@ -1141,6 +1139,10 @@ const config = {
11411139
name: 'namepath-defining',
11421140
required: ['name', 'type']
11431141
},
1142+
next: {
1143+
name: 'namepath-defining',
1144+
required: ['type']
1145+
},
11441146
return: {
11451147
name: 'namepath-defining',
11461148
required: ['type']

.github/.gitconfig

+13-3
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,16 @@ gpgsign = true
7575

7676
[core]
7777
autocrlf = false
78+
editor = code-insiders --wait
7879
ignorecase = false
7980
safecrlf = false
8081

82+
[diff]
83+
tool = vscode
84+
85+
[difftool "vscode"]
86+
cmd = code-insiders --wait --diff $LOCAL $REMOTE
87+
8188
[gitflow "prefix"]
8289
feature = feat/
8390
hotfix = hotfix/
@@ -90,15 +97,18 @@ program = gpg2
9097
[init]
9198
defaultBranch = main
9299

100+
[merge]
101+
tool = vscode
102+
103+
[mergetool "vscode"]
104+
cmd = code-insiders --wait --merge $REMOTE $LOCAL $BASE $MERGED
105+
93106
[pull]
94107
rebase = true
95108

96109
[rebase]
97110
autoStash = true
98111

99-
100-
insteadOf = bb:
101-
102112
103113
insteadOf = gh:
104114

.github/workflows/ci.yml

-2
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,10 @@ jobs:
7070
name: Run tests
7171
run: yarn test:cov
7272
env:
73-
NODE_ENV: test
7473
NODE_NO_WARNINGS: 1
7574
VITEST_SEGFAULT_RETRY: 3
7675
- id: pack
7776
name: Pack project
7877
run: yarn pack -o %s-%v.tgz
7978
env:
8079
NODE_ENV: production
81-
NODE_NO_WARNINGS: 1

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,11 @@ jobs:
114114
run: yarn pack -o %s-%v.tgz
115115
env:
116116
NODE_ENV: production
117-
NODE_NO_WARNINGS: 1
118117
- id: release-notes
119118
name: Generate release notes
120119
run: yarn conventional-changelog -o $NOTES_FILE
120+
env:
121+
NODE_NO_WARNINGS: 1
121122
- id: tag
122123
name: Create annotated tag
123124
run: |
@@ -133,7 +134,7 @@ jobs:
133134
name: Publish release
134135
run: gh release create $TAG *.tgz -t=$TAG -F=$NOTES_FILE -p=$PRERELEASE
135136
env:
136-
GITHUB_TOKEN: ${{ secrets.PAT_BOT }}
137+
GITHUB_TOKEN: ${{ secrets.PAT_REPO }}
137138
PRERELEASE: ${{ needs.metadata.outputs.prerelease }}
138139
cleanup:
139140
needs: [metadata, publish]

.gitignore

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# macOS
22
# ------------------------------------------------------------------------------
3-
.AppleDouble
43
.DS_*
5-
.LSOverride
64
._*
75

86
# Node
@@ -28,7 +26,6 @@ yarn-error.log*
2826
# ------------------------------------------------------------------------------
2927
.pnp.*
3028
.yarn/*
31-
!.yarn/patches
3229
!.yarn/plugins
3330
!.yarn/releases
3431
!.yarn/sdks
@@ -47,6 +44,7 @@ yarn-error.log*
4744
*.lcov
4845
__tests__/report.json
4946
coverage/
47+
vitest.config.*.timestamp-*.mjs
5048

5149
# ESLint
5250
# ------------------------------------------------------------------------------
@@ -56,3 +54,7 @@ coverage/
5654
# ------------------------------------------------------------------------------
5755
dist/
5856
!typings/**/dist/
57+
58+
# Scratch work
59+
# ------------------------------------------------------------------------------
60+
scratch.ts

0 commit comments

Comments
 (0)