Skip to content

Commit 8536c55

Browse files
committed
chore: .mts migration and project rename
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent d30832e commit 8536c55

File tree

250 files changed

+8831
-6937
lines changed

Some content is hidden

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

250 files changed

+8831
-6937
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
}

.codecov.yml

Lines changed: 25 additions & 18 deletions
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: 1
88
wait_for_ci: true
99
require_ci_to_pass: true
1010

1111
comment:
12-
after_n_builds: 3
12+
after_n_builds: 1
1313
behavior: default
1414
layout: header,diff,flags,components,tree,footer
1515
require_base: false
@@ -18,6 +18,21 @@ comment:
1818
show_carryforward_flags: true
1919
show_critical_paths: true
2020

21+
component_management:
22+
default_rules:
23+
statuses:
24+
- type: project
25+
target: 100%
26+
individual_components:
27+
- component_id: constructs
28+
name: constructs
29+
paths:
30+
- src/constructs/*.mts
31+
- component_id: utils
32+
name: utils
33+
paths:
34+
- src/utils/*.mts
35+
2136
coverage:
2237
precision: 2
2338
range: 90..100
@@ -26,6 +41,7 @@ coverage:
2641
changes:
2742
default:
2843
branches:
44+
- dependabot/*
2945
- feat/*
3046
- hotfix/*
3147
- main
@@ -64,15 +80,7 @@ coverage:
6480
threshold: 0%
6581

6682
flags:
67-
node20:
68-
carryforward: false
69-
paths:
70-
- src/
71-
node19:
72-
carryforward: false
73-
paths:
74-
- src/
75-
node18:
83+
node23:
7684
carryforward: false
7785
paths:
7886
- src/
@@ -81,15 +89,14 @@ github_checks:
8189
annotations: true
8290

8391
ignore:
84-
- '**/__mocks__/**'
85-
- '**/__tests__/**'
92+
- '**/*.d.mts'
93+
- '**/__mocks__/'
94+
- '**/__tests__/'
8695
- '**/interfaces/'
8796
- '**/types/'
88-
- '**/index.ts'
89-
- '!src/index.ts'
9097

9198
profiling:
9299
critical_files_paths:
93-
- src/constructs/initialize.ts
94-
- src/lexer.ts
95-
- src/preprocess.ts
100+
- src/constructs/initialize.mts
101+
- src/create-tokenizer.mts
102+
- src/preprocess.mts

.commitlintrc.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ import { scopes } from '@flex-development/commitlint-config'
1818
const config: UserConfig = {
1919
extends: ['@flex-development'],
2020
rules: {
21-
'scope-enum': [Severity.Error, 'always', scopes(['chore', 'constructs'])]
21+
'scope-enum': [Severity.Error, 'always', scopes([
22+
'chore',
23+
'constructs',
24+
'errors'
25+
])]
2226
}
2327
}
2428

.cspell.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,35 @@
22
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
33
"allowCompoundWords": true,
44
"caseSensitive": false,
5-
"dictionaries": ["@flex-development/vfile-lexer"],
5+
"dictionaries": ["@flex-development/vfile-tokenizer"],
66
"dictionaryDefinitions": [
77
{
8-
"name": "@flex-development/vfile-lexer",
8+
"name": "@flex-development/vfile-tokenizer",
99
"path": "./.dictionary.txt"
1010
}
1111
],
1212
"enableGlobDot": true,
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-
"\\\\u001B\\[\\d+m",
39-
"import\\(.*\\)"
40-
],
33+
"ignoreRegExpList": [],
4134
"ignoreWords": [],
4235
"language": "en-US",
4336
"patterns": [],

.dictionary.txt

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
attw
22
cefc
3-
codecov
43
commitlintrc
54
dedupe
6-
deno
75
dessant
86
devlop
97
docast
@@ -13,27 +11,19 @@ fbca
1311
ggshield
1412
gpgsign
1513
hmarr
16-
iife
1714
jchen
1815
kaisugi
19-
lcov
20-
lintstagedrc
21-
mkbuild
22-
mlly
23-
nocheck
2416
nvmrc
2517
onreturn
2618
onsuccessfulcheck
2719
onsuccessfulconstruct
28-
pathe
2920
pkgs
30-
preid
21+
remarkrc
22+
sarif
3123
shfmt
3224
succ
33-
tokenizes
3425
unstub
3526
vates
36-
vfile
3727
vitest
3828
yarnrc
3929
zwnj

.dprint.jsonc

Lines changed: 19 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,33 @@
11
{
22
"$schema": "https://dprint.dev/schemas/v0.json",
33
"excludes": [
4-
"!**/__fixtures__/**/dist/",
5-
"!**/__fixtures__/**/node_modules/",
6-
"!**/scratch.*",
7-
"!**/typings/**/dist/",
4+
"!*.scratch.*",
5+
"!scratch.*",
86
"**/*.patch",
97
"**/*.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",
8+
"**/CHANGELOG.md",
9+
"**/LICENSE.md",
10+
"**/RELEASE_NOTES.md",
2111
".git/",
2212
".husky/_/",
2313
".yarn/",
24-
"CHANGELOG.md",
25-
"LICENSE.md",
26-
"RELEASE_NOTES.md",
27-
"yarn.lock",
28-
"__fixtures__/markdown/*.md"
14+
"__fixtures__/markdown/*.md",
15+
"yarn.lock"
2916
],
3017
"exec": {
3118
"commands": [
3219
{
33-
"command": "node ./dprint/prettier.mjs {{file_path}}",
20+
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/prettier.mts {{file_path}}",
3421
"exts": ["css", "html", "json5", "scss", "yaml", "yml"],
3522
"stdin": true
3623
},
3724
{
38-
"command": "node ./dprint/shfmt.mjs {{file_path}}",
25+
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/remark.mts {{file_path}}",
26+
"exts": ["md", "mdx"],
27+
"stdin": true
28+
},
29+
{
30+
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/shfmt.mts {{file_path}}",
3931
"exts": ["sh", "zsh"],
4032
"fileNames": [
4133
".editorconfig",
@@ -47,7 +39,6 @@
4739
".gitattributes",
4840
".gitconfig",
4941
".gitignore",
50-
".markdownlintignore",
5142
".npmrc",
5243
".nvmrc",
5344
"Brewfile",
@@ -57,9 +48,9 @@
5748
],
5849
"stdin": true
5950
}
60-
]
51+
],
52+
"cwd": "${configDir}"
6153
},
62-
"incremental": true,
6354
"indentWidth": 2,
6455
"json": {
6556
"associations": ["**/*.{jsonc,json}"],
@@ -70,23 +61,11 @@
7061
"trailingCommas": "never"
7162
},
7263
"lineWidth": 80,
73-
"markdown": {
74-
"associations": ["**/*.{md,mdx}"],
75-
"emphasisKind": "asterisks",
76-
"ignoreDirective": "dprint-ignore",
77-
"ignoreEndDirective": "dprint-ignore-end",
78-
"ignoreFileDirective": "dprint-ignore-file",
79-
"ignoreStartDirective": "dprint-ignore-start",
80-
"lineWidth": 120,
81-
"strongKind": "asterisks",
82-
"textWrap": "maintain"
83-
},
8464
"newLineKind": "lf",
8565
"plugins": [
86-
"https://plugins.dprint.dev/typescript-0.91.1.wasm",
87-
"https://plugins.dprint.dev/json-0.19.3.wasm",
88-
"https://plugins.dprint.dev/markdown-0.17.1.wasm",
89-
"https://plugins.dprint.dev/exec-0.4.4.json@c207bf9b9a4ee1f0ecb75c594f774924baf62e8e53a2ce9d873816a408cecbf7"
66+
"https://plugins.dprint.dev/typescript-0.94.0.wasm",
67+
"https://plugins.dprint.dev/json-0.20.0.wasm",
68+
"https://plugins.dprint.dev/exec-0.5.1.json@492414e39dea4dccc07b4af796d2f4efdb89e84bae2bd4e1e924c0cc050855bf"
9069
],
9170
"typescript": {
9271
"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.zsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
[ -f $PWD/.env.repo ] && source $PWD/.env.repo
99
HOMEBREW_BREWFILE=./Brewfile
1010
NODE_NO_WARNINGS=1
11+
NODE_OPTIONS='--experimental-strip-types --experimental-transform-types'

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
blank_issues_enabled: false
66
contact_links:
77
- name: Discuss an idea
8-
url: https://github.com/flex-development/vfile-lexer/discussions/new?category=ideas
8+
url: https://github.com/flex-development/vfile-tokenizer/discussions/new?category=ideas
99
about: Discuss an idea before submitting a feature request
1010
- name: Q&A
11-
url: https://github.com/flex-development/vfile-lexer/discussions/new?category=q-a
11+
url: https://github.com/flex-development/vfile-tokenizer/discussions/new?category=q-a
1212
about: Ask and answer questions
1313
- name: Show and tell
14-
url: https://github.com/flex-development/vfile-lexer/discussions/new?category=show-and-tell
14+
url: https://github.com/flex-development/vfile-tokenizer/discussions/new?category=show-and-tell
1515
about: Show the community how you integrated this project into yours

.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/vfile-lexer/blob/main/CONTRIBUTING.md#pull-request-titles
40+
[pr-naming]: https://github.com/flex-development/vfile-tokenizer/blob/main/CONTRIBUTING.md#pull-request-titles

0 commit comments

Comments
 (0)