Skip to content

Commit 037e2c0

Browse files
committed
chore: update dev and test environments
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent 920c24f commit 037e2c0

37 files changed

+3265
-7080
lines changed

.codecov.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
---
55
codecov:
66
notify:
7-
after_n_builds: 3
7+
after_n_builds: 4
88
wait_for_ci: true
99
require_ci_to_pass: true
1010

1111
comment:
12-
after_n_builds: 3
12+
after_n_builds: 4
1313
behavior: default
1414
layout: header,diff,flags,components,tree,footer
1515
require_base: false
@@ -80,6 +80,10 @@ coverage:
8080
threshold: 0%
8181

8282
flags:
83+
node20:
84+
carryforward: false
85+
paths:
86+
- src/
8387
node19:
8488
carryforward: false
8589
paths:

.cspell.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"ignorePaths": [
1616
"**/*.log",
1717
"**/*.snap",
18+
"**/*.wasm",
1819
"**/.*ignore",
1920
"**/.gitconfig",
2021
"**/CHANGELOG.md",
@@ -31,10 +32,10 @@
3132
"yarn.lock"
3233
],
3334
"ignoreRegExpList": [
34-
"/0x*/",
35+
"/(%2f|%5c).+/i",
36+
"/(;base64,).+/",
3537
"/@flex-development\\/.*/",
3638
"/from\\s+(['\"]).*\\1/",
37-
"^[^/]+\\/[^,;]+[^,]*?(?:;base64)?,(?:[\\S\\s]*)$",
3839
"import\\(.*\\)"
3940
],
4041
"ignoreWords": [],

.dictionary.txt

+46
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,58 @@
1+
algoliasearch
2+
alogirthm
3+
ardatan
4+
bdougie
5+
cefc
6+
changeextfn
17
codecov
8+
commitlintrc
9+
decamelize
210
dedupe
11+
dequote
312
dessant
13+
docast
14+
dohm
15+
esmodules
16+
exactish
17+
fbca
18+
fdvcmxk
19+
ggshield
420
gpgsign
21+
hascjssyntax
22+
hasesmsyntax
523
hmarr
24+
iife
25+
infile
26+
isbarespecifier
27+
isexportssugar
28+
isrelativespecifier
629
keyid
30+
larsgw
31+
lcov
732
lintstagedrc
33+
mkbuild
834
mlly
35+
moduleid
36+
nocheck
37+
nvmrc
38+
parsedmoduleid
39+
parsemoduleid
40+
parsemoduleidoptions
41+
pathe
42+
pkgs
43+
preid
44+
rext
45+
segement
46+
sindresorhus
47+
toabsolutespecifier
48+
todataurl
49+
tourl
50+
unstub
51+
vates
52+
vercel
53+
vfile
954
vitepress
1055
vitest
1156
wabt
1257
yarnrc
58+
zors

.eslintrc.base.cjs

+50-18
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const config = {
5353
},
5454
plugins: [
5555
'@typescript-eslint',
56+
'import',
5657
'jsdoc',
5758
'node',
5859
'prettier',
@@ -171,7 +172,6 @@ const config = {
171172
}
172173
],
173174
'@typescript-eslint/no-dupe-class-members': 2,
174-
'@typescript-eslint/no-duplicate-imports': 2,
175175
'@typescript-eslint/no-dynamic-delete': 2,
176176
'@typescript-eslint/no-empty-function': [
177177
2,
@@ -246,7 +246,7 @@ const config = {
246246
allowedNames: ['self']
247247
}
248248
],
249-
'@typescript-eslint/no-throw-literal': 0,
249+
'@typescript-eslint/no-throw-literal': 2,
250250
'@typescript-eslint/no-type-alias': 0,
251251
'@typescript-eslint/no-unnecessary-boolean-literal-compare': [
252252
2,
@@ -352,7 +352,11 @@ const config = {
352352
2,
353353
{
354354
allowAny: false,
355-
checkCompoundAssignments: false
355+
allowBoolean: false,
356+
allowNullish: false,
357+
allowNumberAndString: true,
358+
allowRegExp: false,
359+
skipCompoundAssignments: true
356360
}
357361
],
358362
'@typescript-eslint/restrict-template-expressions': [
@@ -366,7 +370,7 @@ const config = {
366370
}
367371
],
368372
'@typescript-eslint/return-await': [2, 'in-try-catch'],
369-
'@typescript-eslint/sort-type-union-intersection-members': 2,
373+
'@typescript-eslint/sort-type-constituents': 2,
370374
'@typescript-eslint/strict-boolean-expressions': [
371375
2,
372376
{
@@ -394,6 +398,13 @@ const config = {
394398
'@typescript-eslint/unified-signatures': 2,
395399
'default-param-last': 0,
396400
eqeqeq: 1,
401+
'import/no-duplicates': [
402+
2,
403+
{
404+
considerQueryString: true,
405+
'prefer-inline': true
406+
}
407+
],
397408
'init-declarations': 0,
398409
'jsdoc/check-access': 1,
399410
'jsdoc/check-alignment': 1,
@@ -417,6 +428,7 @@ const config = {
417428
1,
418429
{
419430
definedTags: [
431+
'decorator',
420432
'experimental',
421433
'maximum',
422434
'minimum',
@@ -434,7 +446,6 @@ const config = {
434446
'jsdoc/match-description': 0,
435447
'jsdoc/match-name': 0,
436448
'jsdoc/multiline-blocks': 1,
437-
'jsdoc/newline-after-description': [1, 'always'],
438449
'jsdoc/no-bad-blocks': [1, { preventAllMultiAsteriskBlocks: true }],
439450
'jsdoc/no-defaults': 0,
440451
'jsdoc/no-missing-syntax': 0,
@@ -557,9 +568,10 @@ const config = {
557568
1,
558569
'any',
559570
{
571+
applyToEndTag: true,
560572
count: 1,
561-
dropEndLines: true,
562-
noEndLines: false,
573+
endLines: 0,
574+
startLines: 1,
563575
tags: {}
564576
}
565577
],
@@ -572,6 +584,7 @@ const config = {
572584
'no-empty-function': 0,
573585
'no-ex-assign': 0,
574586
'no-extra-parens': 0,
587+
'no-extra-semi': 0,
575588
'no-implied-eval': 0,
576589
'no-invalid-this': 0,
577590
'no-loop-func': 0,
@@ -774,15 +787,8 @@ const config = {
774787
allowArgumentsExplicitlyTypedAsAny: true,
775788
allowDirectConstAssertionInArrowFunctions: true,
776789
allowHigherOrderFunctions: false,
777-
allowTypedFunctionExpressions: true,
778-
allowedNames: [],
779-
shouldTrackReferences: true
780-
}
781-
],
782-
'@typescript-eslint/no-implicit-any-catch': [
783-
2,
784-
{
785-
allowExplicitAny: false
790+
allowTypedFunctionExpressions: false,
791+
allowedNames: []
786792
}
787793
],
788794
'no-undef': 0
@@ -835,6 +841,7 @@ const config = {
835841
},
836842
plugins: ['chai-expect', 'jest-formatting'],
837843
rules: {
844+
'@typescript-eslint/class-literal-property-style': 0,
838845
'@typescript-eslint/consistent-indexed-object-style': 0,
839846
'@typescript-eslint/no-base-to-string': 0,
840847
'@typescript-eslint/no-empty-function': 0,
@@ -877,6 +884,12 @@ const config = {
877884
'@typescript-eslint/no-redundant-type-constituents': 0
878885
}
879886
},
887+
{
888+
files: ['**/decorators/*.constraint.ts', '**/*.decorator.ts'],
889+
rules: {
890+
'@typescript-eslint/ban-types': 0
891+
}
892+
},
880893
{
881894
files: ['**/enums/*.ts', '**/interfaces/*.ts', '**/types/*.ts'],
882895
rules: {
@@ -989,13 +1002,15 @@ const config = {
9891002
'@typescript-eslint/naming-convention': 0,
9901003
'@typescript-eslint/no-base-to-string': 0,
9911004
'@typescript-eslint/no-confusing-void-expression': 0,
1005+
'@typescript-eslint/no-duplicate-type-constituents': 0,
9921006
'@typescript-eslint/no-floating-promises': 0,
9931007
'@typescript-eslint/no-for-in-array': 0,
9941008
'@typescript-eslint/no-implied-eval': 0,
9951009
'@typescript-eslint/no-meaningless-void-operator': 0,
9961010
'@typescript-eslint/no-misused-promises': 0,
9971011
'@typescript-eslint/no-mixed-enums': 0,
9981012
'@typescript-eslint/no-redundant-type-constituents': 0,
1013+
'@typescript-eslint/no-throw-literal': 0,
9991014
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 0,
10001015
'@typescript-eslint/no-unnecessary-condition': 0,
10011016
'@typescript-eslint/no-unnecessary-qualifier': 0,
@@ -1004,12 +1019,14 @@ const config = {
10041019
'@typescript-eslint/no-unsafe-argument': 0,
10051020
'@typescript-eslint/no-unsafe-assignment': 0,
10061021
'@typescript-eslint/no-unsafe-call': 0,
1022+
'@typescript-eslint/no-unsafe-enum-comparison': 0,
10071023
'@typescript-eslint/no-unsafe-member-access': 0,
10081024
'@typescript-eslint/no-unsafe-return': 0,
10091025
'@typescript-eslint/no-unused-expressions': 0,
10101026
'@typescript-eslint/non-nullable-type-assertion-style': 0,
10111027
'@typescript-eslint/prefer-includes': 0,
10121028
'@typescript-eslint/prefer-nullish-coalescing': 0,
1029+
'@typescript-eslint/prefer-optional-chain': 0,
10131030
'@typescript-eslint/prefer-readonly': 0,
10141031
'@typescript-eslint/prefer-readonly-parameter-types': 0,
10151032
'@typescript-eslint/prefer-reduce-type-parameter': 0,
@@ -1030,7 +1047,7 @@ const config = {
10301047
}
10311048
},
10321049
{
1033-
files: '**/*.yml',
1050+
files: '**/*.+(yaml|yml)',
10341051
parser: 'yaml-eslint-parser',
10351052
plugins: ['yml'],
10361053
rules: {
@@ -1149,20 +1166,35 @@ const config = {
11491166
'prettier/prettier': [2, {}, { usePrettierrc: true }]
11501167
},
11511168
settings: {
1169+
'import/parsers': {
1170+
'@typescript-eslint/parser': ['.cts', '.mts', '.ts', '.tsx']
1171+
},
1172+
'import/resolver': {
1173+
node: true,
1174+
typescript: true
1175+
},
11521176
jsdoc: {
11531177
augmentsExtendsReplacesDocs: true,
11541178
ignoreInternal: false,
11551179
ignorePrivate: false,
11561180
implementsReplacesDocs: true,
11571181
overrideReplacesDocs: true,
11581182
preferredTypes: {
1159-
'*': false
1183+
'*': false,
1184+
'.<>': false,
1185+
'Array<>': { replacement: '[]' },
1186+
Object: { replacement: 'object' },
1187+
'Object<>': { replacement: 'Record<>' },
1188+
object: 'object'
11601189
},
11611190
structuredTags: {
11621191
const: {
11631192
name: 'namepath-defining',
11641193
required: ['name']
11651194
},
1195+
decorator: {
1196+
name: 'none'
1197+
},
11661198
enum: {
11671199
name: 'namepath-defining',
11681200
required: ['name', 'type']

.github/dependabot.yml

-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ updates:
5050
patterns:
5151
- '@vitest/*'
5252
- vitest
53-
ignore:
54-
- dependency-name: vitepress
5553
labels:
5654
- scope:dependencies
5755
- type:build

.github/infrastructure.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ branches:
4444
- context: test (16)
4545
- context: test (18)
4646
- context: test (19)
47+
- context: test (20)
4748
- context: typescript (5.0.4)
49+
- context: typescript (5.1.6)
4850
- context: typescript (latest)
49-
- context: typescript (~4.7.0)
50-
- context: typescript (~4.8.0)
51-
- context: typescript (~4.9.0)
5251
strict: true
5352
restrictions: null
5453
# https://docs.github.com/rest/deployments/environments#create-or-update-an-environment
@@ -211,8 +210,6 @@ repository:
211210
is_template: false
212211
private: false
213212
security_and_analysis:
214-
advanced_security:
215-
status: disabled
216213
secret_scanning:
217214
status: enabled
218215
secret_scanning_push_protection:

.github/workflows/ci.yml

+4-9
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,7 @@ jobs:
240240
typescript-version:
241241
- ${{ needs.preflight.outputs.version-typescript }}
242242
- latest
243-
- ~4.9.0
244-
- ~4.8.0
245-
- ~4.7.0
243+
- 5.0.4
246244
steps:
247245
- id: checkout
248246
name: Checkout ${{ env.REF_NAME }}
@@ -274,14 +272,10 @@ jobs:
274272
if: steps.test-files-check.outputs.files_exists == 'true'
275273
name: Install typescript@${{ matrix.typescript-version }}
276274
run: yarn add -D typescript@${{ matrix.typescript-version }}
277-
- id: set-typescript-version
278-
name: Set env.TYPESCRIPT_VERSION
279-
run: |
280-
echo "TYPESCRIPT_VERSION=$(jq .devDependencies.typescript package.json -r)" >>$GITHUB_ENV
281275
- id: print-typescript-version
282276
if: steps.test-files-check.outputs.files_exists == 'true'
283277
name: Print TypeScript version
284-
run: echo $TYPESCRIPT_VERSION
278+
run: jq .devDependencies.typescript package.json -r
285279
- id: typecheck
286280
if: steps.test-files-check.outputs.files_exists == 'true'
287281
name: Run typecheck
@@ -295,6 +289,7 @@ jobs:
295289
fail-fast: false
296290
matrix:
297291
node-version:
292+
- 20
298293
- 19
299294
- 18
300295
- 16
@@ -403,7 +398,7 @@ jobs:
403398
- spelling
404399
- test
405400
- typescript
406-
if: github.actor != 'dependabot[bot]' && github.actor != 'flexdevelopment'
401+
if: github.actor != 'flexdevelopment'
407402
runs-on: ubuntu-latest
408403
environment: preview
409404
env:

0 commit comments

Comments
 (0)