Skip to content

Commit bcb55cd

Browse files
committed
chore: update dev and test environments
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent f88fd62 commit bcb55cd

File tree

19 files changed

+2081
-1463
lines changed

19 files changed

+2081
-1463
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
# DIRECTORIES & FILES
55
**/*.snap
66
**/*config.*.timestamp*
7+
**/.DS_Store
78
**/__tests__/report.json
89
**/coverage/
10+
**/.temp/
911
**/dist/
1012
**/node_modules/
1113
**/tsconfig*temp.json

.eslintrc.base.cjs

Lines changed: 49 additions & 19 deletions
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': 2,
249+
'@typescript-eslint/no-throw-literal': 0,
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',
@@ -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,
@@ -581,6 +594,7 @@ const config = {
581594
'no-return-await': 0,
582595
'no-shadow': 0,
583596
'no-sparse-arrays': 0,
597+
'no-throw-literal': 0,
584598
'no-unused-expressions': 0,
585599
'no-unused-vars': 0,
586600
'no-use-before-define': 0,
@@ -661,7 +675,7 @@ const config = {
661675
terms: ['@fixme', '@todo']
662676
}
663677
],
664-
'unicorn/explicit-length-check': 2,
678+
'unicorn/explicit-length-check': 0,
665679
'unicorn/filename-case': [
666680
2,
667681
{
@@ -774,15 +788,8 @@ const config = {
774788
allowArgumentsExplicitlyTypedAsAny: true,
775789
allowDirectConstAssertionInArrowFunctions: true,
776790
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
791+
allowTypedFunctionExpressions: false,
792+
allowedNames: []
786793
}
787794
],
788795
'no-undef': 0
@@ -835,6 +842,7 @@ const config = {
835842
},
836843
plugins: ['chai-expect', 'jest-formatting'],
837844
rules: {
845+
'@typescript-eslint/class-literal-property-style': 0,
838846
'@typescript-eslint/consistent-indexed-object-style': 0,
839847
'@typescript-eslint/no-base-to-string': 0,
840848
'@typescript-eslint/no-empty-function': 0,
@@ -858,7 +866,6 @@ const config = {
858866
'promise/valid-params': 0,
859867
'unicorn/consistent-destructuring': 0,
860868
'unicorn/error-message': 0,
861-
'unicorn/explicit-length-check': 0,
862869
'unicorn/no-array-for-each': 0,
863870
'unicorn/no-hex-escape': 0,
864871
'unicorn/no-useless-undefined': 0,
@@ -878,6 +885,12 @@ const config = {
878885
'@typescript-eslint/no-redundant-type-constituents': 0
879886
}
880887
},
888+
{
889+
files: ['**/decorators/*.constraint.ts', '**/*.decorator.ts'],
890+
rules: {
891+
'@typescript-eslint/ban-types': 0
892+
}
893+
},
881894
{
882895
files: ['**/enums/*.ts', '**/interfaces/*.ts', '**/types/*.ts'],
883896
rules: {
@@ -990,6 +1003,7 @@ const config = {
9901003
'@typescript-eslint/naming-convention': 0,
9911004
'@typescript-eslint/no-base-to-string': 0,
9921005
'@typescript-eslint/no-confusing-void-expression': 0,
1006+
'@typescript-eslint/no-duplicate-type-constituents': 0,
9931007
'@typescript-eslint/no-floating-promises': 0,
9941008
'@typescript-eslint/no-for-in-array': 0,
9951009
'@typescript-eslint/no-implied-eval': 0,
@@ -1006,12 +1020,14 @@ const config = {
10061020
'@typescript-eslint/no-unsafe-argument': 0,
10071021
'@typescript-eslint/no-unsafe-assignment': 0,
10081022
'@typescript-eslint/no-unsafe-call': 0,
1023+
'@typescript-eslint/no-unsafe-enum-comparison': 0,
10091024
'@typescript-eslint/no-unsafe-member-access': 0,
10101025
'@typescript-eslint/no-unsafe-return': 0,
10111026
'@typescript-eslint/no-unused-expressions': 0,
10121027
'@typescript-eslint/non-nullable-type-assertion-style': 0,
10131028
'@typescript-eslint/prefer-includes': 0,
10141029
'@typescript-eslint/prefer-nullish-coalescing': 0,
1030+
'@typescript-eslint/prefer-optional-chain': 0,
10151031
'@typescript-eslint/prefer-readonly': 0,
10161032
'@typescript-eslint/prefer-readonly-parameter-types': 0,
10171033
'@typescript-eslint/prefer-reduce-type-parameter': 0,
@@ -1132,15 +1148,14 @@ const config = {
11321148
files: [
11331149
'.github/dependabot.yml',
11341150
'.github/workflows/*.yml',
1135-
'action.yml',
1136-
'docker*.yml'
1151+
'action.yml'
11371152
],
11381153
rules: {
11391154
'yml/sort-keys': 0
11401155
}
11411156
},
11421157
{
1143-
files: ['.github/workflows/*.yml', '.yarnrc.yml', 'docker*.yml'],
1158+
files: ['.github/workflows/*.yml', '.yarnrc.yml'],
11441159
rules: {
11451160
'yml/key-name-casing': 0
11461161
}
@@ -1152,20 +1167,35 @@ const config = {
11521167
'prettier/prettier': [2, {}, { usePrettierrc: true }]
11531168
},
11541169
settings: {
1170+
'import/parsers': {
1171+
'@typescript-eslint/parser': ['.cts', '.mts', '.ts', '.tsx']
1172+
},
1173+
'import/resolver': {
1174+
node: true,
1175+
typescript: true
1176+
},
11551177
jsdoc: {
11561178
augmentsExtendsReplacesDocs: true,
11571179
ignoreInternal: false,
11581180
ignorePrivate: false,
11591181
implementsReplacesDocs: true,
11601182
overrideReplacesDocs: true,
11611183
preferredTypes: {
1162-
'*': false
1184+
'*': false,
1185+
'.<>': false,
1186+
'Array<>': { replacement: '[]' },
1187+
Object: { replacement: 'object' },
1188+
'Object<>': { replacement: 'Record<>' },
1189+
object: 'object'
11631190
},
11641191
structuredTags: {
11651192
const: {
11661193
name: 'namepath-defining',
11671194
required: ['name']
11681195
},
1196+
decorator: {
1197+
name: 'none'
1198+
},
11691199
enum: {
11701200
name: 'namepath-defining',
11711201
required: ['name', 'type']

.github/infrastructure.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ branches:
2424
- context: add-to-project
2525
- context: auto-merge
2626
- context: build
27-
- context: codecov/changes
28-
app_id: 254
2927
- context: codecov/patch
3028
app_id: 254
3129
- context: codecov/project
@@ -41,7 +39,8 @@ branches:
4139
- context: test (19)
4240
- context: test (20)
4341
- context: typescript (5.0.4)
44-
- context: typescript (~4.9.0)
42+
- context: typescript (5.1.6)
43+
- context: typescript (latest)
4544
strict: true
4645
restrictions: null
4746
# https://docs.github.com/rest/deployments/environments#create-or-update-an-environment
@@ -178,8 +177,6 @@ repository:
178177
is_template: false
179178
private: false
180179
security_and_analysis:
181-
advanced_security:
182-
status: disabled
183180
secret_scanning:
184181
status: enabled
185182
secret_scanning_push_protection:

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ jobs:
235235
matrix:
236236
typescript-version:
237237
- ${{ needs.preflight.outputs.version-typescript }}
238-
- ~4.9.0
238+
- latest
239+
- 5.0.4
239240
steps:
240241
- id: checkout
241242
name: Checkout ${{ env.REF_NAME }}
@@ -267,14 +268,10 @@ jobs:
267268
if: steps.test-files-check.outputs.files_exists == 'true'
268269
name: Install typescript@${{ matrix.typescript-version }}
269270
run: yarn add -D typescript@${{ matrix.typescript-version }}
270-
- id: set-typescript-version
271-
name: Set env.TYPESCRIPT_VERSION
272-
run: |
273-
echo "TYPESCRIPT_VERSION=$(jq .devDependencies.typescript package.json -r)" >>$GITHUB_ENV
274271
- id: print-typescript-version
275272
if: steps.test-files-check.outputs.files_exists == 'true'
276273
name: Print TypeScript version
277-
run: echo $TYPESCRIPT_VERSION
274+
run: jq .devDependencies.typescript package.json -r
278275
- id: typecheck
279276
if: steps.test-files-check.outputs.files_exists == 'true'
280277
name: Run typecheck

.github/workflows/typescript-canary.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ name: typescript-canary
2121
on:
2222
schedule:
2323
# every day, 3 hours after typescript@next release
24-
# https://github.com/microsoft/TypeScript/blob/v4.9.5/.github/workflows/nightly.yaml
24+
# https://github.com/microsoft/TypeScript/blob/v5.0.4/.github/workflows/nightly.yaml
2525
- cron: 0 10 * * *
2626
workflow_dispatch:
2727
permissions:
@@ -65,13 +65,9 @@ jobs:
6565
- id: typescript
6666
name: Install typescript@${{ matrix.typescript-version }}
6767
run: yarn add -D typescript@${{ matrix.typescript-version }}
68-
- id: set-typescript-version
69-
name: Set env.TYPESCRIPT_VERSION
70-
run: |
71-
echo "TYPESCRIPT_VERSION=$(jq .devDependencies.typescript package.json -r)" >>$GITHUB_ENV
7268
- id: print-typescript-version
7369
name: Print TypeScript version
74-
run: echo $TYPESCRIPT_VERSION
70+
run: jq .devDependencies.typescript package.json -r
7571
- id: build
7672
name: Build project
7773
run: yarn build

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
20.5.0

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"arrowParens": "avoid",
33
"bracketSpacing": true,
4+
"plugins": ["prettier-plugin-sh"],
45
"proseWrap": "always",
56
"quoteProps": "as-needed",
67
"semi": false,

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@
256256
"shellformat.flag": "-ci -fn -i=2 -sr",
257257
"shellformat.useEditorConfig": true,
258258
"terminal.integrated.copyOnSelection": true,
259+
"terminal.integrated.scrollback": 10000,
259260
"todo-tree.filtering.ignoreGitSubmodules": true,
260261
"todo-tree.filtering.includeHiddenFiles": false,
261262
"todo-tree.filtering.useBuiltInExcludes": "file and search excludes",

0 commit comments

Comments
 (0)