Skip to content

Commit b707dff

Browse files
committed
chore: .mts migration
- closes #704 - closes #707 - closes #709 - closes #711 - closes #712 Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 453c43e commit b707dff

File tree

104 files changed

+4900
-3805
lines changed

Some content is hidden

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

104 files changed

+4900
-3805
lines changed

.attw.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"color": true,
33
"emoji": true,
44
"format": "ascii",
5-
"ignoreRules": ["cjs-resolves-to-esm"],
5+
"ignoreRules": ["cjs-resolves-to-esm", "internal-resolution-error"],
66
"summary": true
77
}

.cspell.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,24 @@
1313
"failFast": false,
1414
"flagWords": [],
1515
"ignorePaths": [
16-
"**/*.log",
16+
"**/*.patch",
1717
"**/*.snap",
1818
"**/*.wasm",
1919
"**/.*ignore",
2020
"**/.gitconfig",
2121
"**/CHANGELOG.md",
2222
"**/LICENSE.md",
2323
"**/RELEASE_NOTES.md",
24-
"**/scratch.*",
2524
".cspell.json",
2625
".dictionary.txt",
2726
".git/",
2827
".husky/_/",
2928
".vscode/settings.json",
3029
".yarn/",
31-
"dist/",
3230
"patches/",
3331
"yarn.lock"
3432
],
35-
"ignoreRegExpList": [
36-
"/@flex-development\\/.*/",
37-
"/from\\s+(['\"]).*\\1/",
38-
"import\\(.*\\)"
39-
],
33+
"ignoreRegExpList": [],
4034
"ignoreWords": [],
4135
"language": "en-US",
4236
"patterns": [],

.dictionary.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,23 @@ commitlintrc
55
dedupe
66
dedupe
77
dessant
8+
devlop
89
docast
910
dohm
1011
dprint
1112
fbca
1213
ggshield
1314
gpgsign
1415
hmarr
15-
iife
1616
jchen
1717
kaisugi
18-
keyof
1918
lintstagedrc
2019
mdast
21-
mkbuild
22-
mlly
23-
nocheck
2420
nvmrc
25-
pathe
2621
pkgs
27-
preid
22+
remarkrc
23+
sarif
2824
shfmt
29-
unstub
3025
vates
3126
vitest
3227
yarnrc

.dprint.jsonc

Lines changed: 17 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,32 @@
11
{
22
"$schema": "https://dprint.dev/schemas/v0.json",
33
"excludes": [
4-
"!**/__fixtures__/**/dist/",
5-
"!**/__fixtures__/**/node_modules/",
6-
"!**/typings/**/dist/",
7-
"!scratch.ts",
4+
"!scratch.*",
85
"**/*.patch",
96
"**/*.snap",
10-
"**/*config.*.timestamp*",
11-
"**/.temp/",
12-
"**/.vercel/",
13-
"**/__fixtures__/git/**/*.txt",
14-
"**/__tests__/benchmark.json",
15-
"**/__tests__/report.json",
16-
"**/__tests__/typecheck.json",
17-
"**/coverage/",
18-
"**/dist/",
19-
"**/node_modules",
20-
"**/tsconfig*temp.json",
7+
"**/CHANGELOG.md",
8+
"**/LICENSE.md",
9+
"**/RELEASE_NOTES.md",
2110
".git/",
2211
".husky/_/",
2312
".yarn/",
24-
"CHANGELOG.md",
25-
"LICENSE.md",
26-
"RELEASE_NOTES.md",
2713
"yarn.lock"
2814
],
2915
"exec": {
3016
"commands": [
3117
{
32-
"command": "node ./dprint/prettier.mjs {{file_path}}",
18+
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/prettier.mts {{file_path}}",
3319
"exts": ["css", "html", "json5", "scss", "yaml", "yml"],
3420
"stdin": true
3521
},
3622
{
37-
"command": "node ./dprint/shfmt.mjs {{file_path}}",
38-
"exts": ["sh", "txt", "zsh"],
23+
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/remark.mts {{file_path}}",
24+
"exts": ["md", "mdx"],
25+
"stdin": true
26+
},
27+
{
28+
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/shfmt.mts {{file_path}}",
29+
"exts": ["sh", "zsh"],
3930
"fileNames": [
4031
".editorconfig",
4132
".env",
@@ -46,7 +37,6 @@
4637
".gitattributes",
4738
".gitconfig",
4839
".gitignore",
49-
".markdownlintignore",
5040
".npmrc",
5141
".nvmrc",
5242
"Brewfile",
@@ -56,9 +46,9 @@
5646
],
5747
"stdin": true
5848
}
59-
]
49+
],
50+
"cwd": "${configDir}"
6051
},
61-
"incremental": true,
6252
"indentWidth": 2,
6353
"json": {
6454
"associations": ["**/*.{jsonc,json}"],
@@ -69,23 +59,11 @@
6959
"trailingCommas": "never"
7060
},
7161
"lineWidth": 80,
72-
"markdown": {
73-
"associations": ["**/*.{md,mdx}"],
74-
"emphasisKind": "asterisks",
75-
"ignoreDirective": "dprint-ignore",
76-
"ignoreEndDirective": "dprint-ignore-end",
77-
"ignoreFileDirective": "dprint-ignore-file",
78-
"ignoreStartDirective": "dprint-ignore-start",
79-
"lineWidth": 120,
80-
"strongKind": "asterisks",
81-
"textWrap": "maintain"
82-
},
8362
"newLineKind": "lf",
8463
"plugins": [
85-
"https://plugins.dprint.dev/typescript-0.91.3.wasm",
86-
"https://plugins.dprint.dev/json-0.19.3.wasm",
87-
"https://plugins.dprint.dev/markdown-0.17.1.wasm",
88-
"https://plugins.dprint.dev/exec-0.5.0.json@8d9972eee71fa1590e04873540421f3eda7674d0f1aae3d7c788615e7b7413d0"
64+
"https://plugins.dprint.dev/typescript-0.93.3.wasm",
65+
"https://plugins.dprint.dev/json-0.19.4.wasm",
66+
"https://plugins.dprint.dev/exec-0.5.1.json@492414e39dea4dccc07b4af796d2f4efdb89e84bae2bd4e1e924c0cc050855bf"
8967
],
9068
"typescript": {
9169
"arrowFunction.useParentheses": "preferNone",

.editorconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ switch_case_indent = true
4141
[*.snap]
4242
max_line_length = 130
4343

44-
# xml
45-
[*.xml]
46-
max_line_length = 100
47-
4844
# yaml
4945
[{*.yaml,*.yml}]
5046
max_line_length = 100

.env.vars

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# repository variables
2+
3+
GH_PROJECT_NUMBER=16

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
<!--lint disable-->
2+
13
## Description
24

5+
<!--lint enable-->
6+
37
<!-- A clear and concise description of your changes. -->
48

59
## Linked issues
@@ -31,6 +35,6 @@ Include additional details here. Be sure to note if any tolerable vulnerabilitie
3135
- [ ] tests added and/or updated
3236
- [ ] documentation added or updated
3337
- [ ] new, **tolerable** vulnerabilities and/or warnings documented, if any
34-
- [ ] [pr naming conventions][1]
38+
- [ ] [pr naming conventions][pr-naming]
3539

36-
[1]: https://github.com/flex-development/docast/blob/main/CONTRIBUTING.md#pull-request-titles
40+
[pr-naming]: https://github.com/flex-development/docast/blob/main/CONTRIBUTING.md#pull-request-titles

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ updates:
4040
flex-development:
4141
patterns:
4242
- '@flex-development/*'
43+
remark:
44+
patterns:
45+
- 'remark-*'
46+
- remark
4347
typescript-eslint:
4448
patterns:
4549
- '@typescript-eslint/*'

.github/infrastructure.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ branches:
3232
- context: gitguardian
3333
- context: lint
3434
- context: spelling
35-
- context: typescript (5.3.3)
36-
- context: typescript (5.4.5)
37-
- context: typescript (5.5.3)
38-
- context: typescript (latest)
35+
- context: typescript (5.7.3)
3936
strict: true
4037
restrictions: null
4138
environments:

.github/workflows/ci.yml

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ jobs:
5858
runs-on: ubuntu-latest
5959
outputs:
6060
cache-key: ${{ steps.cache-key.outputs.result }}
61-
version: ${{ steps.version.outputs.result }}
61+
typecheck-files: ${{ steps.typecheck-files.outputs.files_exists }}
6262
version-typescript: ${{ steps.version-typescript.outputs.result }}
63+
version: ${{ steps.version.outputs.result }}
6364
steps:
6465
- id: debug
6566
name: Print environment variables and event payload
@@ -97,6 +98,11 @@ jobs:
9798
- id: version-typescript
9899
name: Get TypeScript version
99100
run: echo "result=$(jq .devDependencies.typescript package.json -r)" >>$GITHUB_OUTPUT
101+
- id: typecheck-files
102+
name: Check for typecheck files
103+
uses: andstor/[email protected]
104+
with:
105+
files: 'src/**/__tests__/*.spec-d.mts'
100106
commitlint:
101107
needs: preflight
102108
runs-on: ubuntu-latest
@@ -130,23 +136,21 @@ jobs:
130136
runs-on: ubuntu-latest
131137
steps:
132138
- id: checkout
133-
name: Checkout ${{ env.REF_NAME }}
139+
name: Checkout
134140
uses: actions/[email protected]
135141
with:
136142
fetch-depth: 0
137-
persist-credentials: false
138-
ref: ${{ env.REF }}
139143
- id: scan
140-
name: Scan commits for secrets and policy breaches
141-
uses: GitGuardian/ggshield-action@master
144+
name: Scan commits with ggshield
145+
uses: GitGuardian/ggshield-action@v1.34.0
142146
env:
143147
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}
144148
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
145149
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }}
146150
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }}
147151
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }}
148152
with:
149-
args: --all-policies --show-secrets --verbose
153+
args: --all-policies --format sarif --show-secrets --with-incident-details --verbose
150154
format:
151155
needs:
152156
- commitlint
@@ -245,48 +249,45 @@ jobs:
245249
matrix:
246250
typescript-version:
247251
- ${{ needs.preflight.outputs.version-typescript }}
248-
- 5.4.5
249-
- 5.3.3
250-
- latest
252+
env:
253+
VITEST_REPORT: ./.vitest-reports/typecheck.blob.json
254+
if: ${{ fromJson(needs.preflight.outputs.typecheck-files) }}
251255
steps:
252256
- id: checkout
253257
name: Checkout ${{ env.REF_NAME }}
254258
uses: actions/[email protected]
255259
with:
256260
persist-credentials: false
257261
ref: ${{ env.REF }}
258-
- id: test-files-check
259-
name: Check for typecheck files
260-
uses: andstor/[email protected]
261-
with:
262-
files: '**/__tests__/*.spec-d.ts'
263262
- id: node
264-
if: steps.test-files-check.outputs.files_exists == 'true'
265263
name: Setup Node.js
266264
uses: actions/[email protected]
267265
with:
268266
cache: yarn
269267
cache-dependency-path: yarn.lock
270268
node-version-file: .nvmrc
271269
- id: cache
272-
if: steps.test-files-check.outputs.files_exists == 'true'
273270
name: Restore dependencies cache
274271
uses: actions/[email protected]
275272
with:
276273
key: ${{ needs.preflight.outputs.cache-key }}
277274
path: ${{ env.CACHE_PATH }}
278275
- id: typescript
279-
if: steps.test-files-check.outputs.files_exists == 'true'
280276
name: Install typescript@${{ matrix.typescript-version }}
281277
run: yarn add -D typescript@${{ matrix.typescript-version }}
282278
- id: print-typescript-version
283-
if: steps.test-files-check.outputs.files_exists == 'true'
284279
name: Print TypeScript version
285280
run: jq .devDependencies.typescript package.json -r
286281
- id: typecheck
287-
if: steps.test-files-check.outputs.files_exists == 'true'
288282
name: Run typecheck
289283
run: yarn typecheck
284+
- id: report
285+
name: Upload report
286+
uses: actions/[email protected]
287+
with:
288+
name: |
289+
${{ format('typecheck-{0}-{1}-{2}.blob.json', matrix.typescript-version, github.event.repository.name, env.SHA) }}
290+
path: ${{ env.VITEST_REPORT }}
290291
build:
291292
needs:
292293
- commitlint
@@ -345,6 +346,8 @@ jobs:
345346
- spelling
346347
- typescript
347348
runs-on: ubuntu-latest
349+
env:
350+
NODE_NO_WARNINGS: 1
348351
steps:
349352
- id: checkout
350353
name: Checkout ${{ env.REF_NAME }}

0 commit comments

Comments
 (0)