Skip to content

Commit 190f204

Browse files
committed
build(deps-dev): bump typescript from 5.4.0-beta to 5.4.3
- closes #68 Signed-off-by: Lexus Drumgold <[email protected]>
1 parent bede71b commit 190f204

File tree

12 files changed

+53
-36
lines changed

12 files changed

+53
-36
lines changed

.eslintrc.base.cjs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const config = {
3434
parser: '@typescript-eslint/parser',
3535
parserOptions: {
3636
extraFileExtensions: [],
37-
project: ['**/tsconfig.json'],
37+
project: ['**/tsconfig.json', '**/tsconfig.*.json'],
3838
tsconfigRootDir: process.cwd(),
3939
warnOnUnsupportedTypeScriptVersion: true
4040
},
@@ -495,9 +495,16 @@ const config = {
495495
checkConstructors: true,
496496
checkGetters: true,
497497
checkSetters: true,
498+
contexts: [
499+
'TSDeclareFunction:not(TSDeclareFunction + TSDeclareFunction)',
500+
'FunctionDeclaration:not(TSDeclareFunction + FunctionDeclaration)'
501+
],
498502
enableFixer: true,
499503
exemptEmptyConstructors: true,
500-
exemptEmptyFunctions: false
504+
exemptEmptyFunctions: false,
505+
require: {
506+
FunctionDeclaration: false
507+
}
501508
}
502509
],
503510
'jsdoc/require-param': [
@@ -1057,6 +1064,7 @@ const config = {
10571064
'@typescript-eslint/no-floating-promises': 0,
10581065
'@typescript-eslint/no-for-in-array': 0,
10591066
'@typescript-eslint/no-implied-eval': 0,
1067+
'@typescript-eslint/no-invalid-void-type': 0,
10601068
'@typescript-eslint/no-meaningless-void-operator': 0,
10611069
'@typescript-eslint/no-misused-promises': 0,
10621070
'@typescript-eslint/no-mixed-enums': 0,

.github/infrastructure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ branches:
4242
- context: test (19)
4343
- context: test (20)
4444
- context: typescript (5.3.3)
45-
- context: typescript (5.4.0-beta)
45+
- context: typescript (5.4.3)
4646
- context: typescript (latest)
4747
strict: true
4848
restrictions: null

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ jobs:
244244
fail-fast: false
245245
matrix:
246246
typescript-version:
247-
- 5.3.3
248247
- ${{ needs.preflight.outputs.version-typescript }}
248+
- 5.3.3
249249
- latest
250250
steps:
251251
- id: checkout

.vscode/settings.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,6 @@
267267
"resolutions"
268268
],
269269
"vsicons.associations.files": [
270-
{
271-
"extensions": [".commitlintrc.cts"],
272-
"format": "svg",
273-
"icon": "commitlint"
274-
},
275270
{
276271
"extensions": [".eslintrc.base.cjs"],
277272
"format": "svg",

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ This means every commit must conform to the following format:
168168
│ │ │
169169
│ │ └─⫸ optional breaking change flag
170170
│ │
171-
│ └─⫸ see .commitlintrc.cts
171+
│ └─⫸ see .commitlintrc.ts
172172
173173
└─⫸ build|ci|chore|docs|feat|fix|perf|refactor|revert|style|test|wip
174174
@@ -199,7 +199,7 @@ e.g:
199199
- `build(deps-dev): bump cspell from 6.7.0 to 6.8.0`
200200
- `perf: lighten initial load`
201201
202-
See [`.commitlintrc.cts`](.commitlintrc.cts) to view all commit guidelines.
202+
See [`.commitlintrc.ts`](.commitlintrc.ts) to view all commit guidelines.
203203
204204
### Code Style
205205
@@ -331,7 +331,7 @@ When squashing, be sure to follow [commit message standards](#commit-messages):
331331
│ │ │
332332
│ │ └─⫸ optional breaking change flag
333333
│ │
334-
│ └─⫸ see .commitlintrc.cts
334+
│ └─⫸ see .commitlintrc.ts
335335
336336
└─⫸ build|ci|chore|docs|feat|fix|perf|refactor|release|revert|style|test
337337
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
"to-vfile": "8.0.0",
158158
"trash-cli": "5.0.0",
159159
"ts-dedent": "2.2.0",
160-
"typescript": "5.4.0-beta",
160+
"typescript": "5.4.3",
161161
"unist-util-inspect": "8.0.0",
162162
"vfile": "6.0.1",
163163
"vite": "5.2.2",

src/enums/token-kind.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
* @module docast-util-from-docs/enums/TokenKind
44
*/
55

6-
import type { DocastNode } from '@flex-development/docast'
7-
86
/**
97
* Lexer token types.
108
*
11-
* @enum {DocastNode['type']}
9+
* @enum {string}
1210
*/
1311
enum TokenKind {
1412
BLOCK_TAG = 'blockTag',

tsconfig.build.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"customConditions": ["import", "node"],
44
"declaration": true,
55
"noEmitOnError": true,
6+
"paths": {
7+
"#src/*": ["src/*"]
8+
},
69
"skipLibCheck": false,
710
"target": "es2022"
811
},

tsconfig.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"#src": ["src/index"],
3333
"#src/*": ["src/*"],
3434
"#tests/*": ["__tests__/*"],
35-
"@flex-development/docast-util-from-docs": ["src/index"]
35+
"@flex-development/docast-util-from-docs": ["dist/index", "src/index"]
3636
},
3737
"preserveConstEnums": true,
3838
"preserveSymlinks": false,
@@ -54,10 +54,10 @@
5454
},
5555
"exclude": ["**/coverage", "**/dist", "**/node_modules"],
5656
"include": [
57-
"**/**.json",
58-
"**/**.mjs",
59-
"**/**.mts",
60-
"**/**.ts",
57+
"**/**/*.json",
58+
"**/**/*.mjs",
59+
"**/**/*.mts",
60+
"**/**/*.ts",
6161
"**/.*.json",
6262
"**/.*.mjs",
6363
"**/.*.mts",

tsconfig.typecheck.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
22
"exclude": ["**/coverage", "**/dist", "**/node_modules"],
33
"extends": "./tsconfig.json",
4-
"include": ["**/**.ts", "**/.*.ts"]
4+
"files": ["typings/@faker-js/faker/global.d.ts", "vitest-env.d.ts"],
5+
"include": [
6+
"__fixtures__/**/**.ts",
7+
"__tests__/**/**.ts",
8+
"src/**/**.ts",
9+
"src/**/.*.ts"
10+
]
511
}

vitest.config.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,16 @@ const config: UserConfigExport = defineConfig((env: ConfigEnv): UserConfig => {
3232
*/
3333
const LINT_STAGED: boolean = !!Number.parseInt(process.env.LINT_STAGED ?? '0')
3434

35+
/**
36+
* Relative path to tsconfig file.
37+
*
38+
* @const {string} tsconfig
39+
*/
40+
const tsconfig: string = 'tsconfig.typecheck.json'
41+
3542
return {
3643
define: {},
37-
plugins: [tsconfigPaths({ projects: [pathe.resolve('tsconfig.json')] })],
44+
plugins: [tsconfigPaths({ projects: [tsconfig] })],
3845
test: {
3946
allowOnly: !ci,
4047
benchmark: {
@@ -54,9 +61,9 @@ const config: UserConfigExport = defineConfig((env: ConfigEnv): UserConfig => {
5461
exclude: [
5562
'**/__mocks__/**',
5663
'**/__tests__/**',
57-
'**/index.ts',
58-
'src/interfaces/',
59-
'src/types/'
64+
'**/interfaces/',
65+
'**/types/',
66+
'**/index.ts'
6067
],
6168
extension: ['.ts'],
6269
include: ['src'],
@@ -141,7 +148,7 @@ const config: UserConfigExport = defineConfig((env: ConfigEnv): UserConfig => {
141148
ignoreSourceErrors: false,
142149
include: ['**/__tests__/*.spec-d.ts'],
143150
only: true,
144-
tsconfig: pathe.resolve('tsconfig.typecheck.json')
151+
tsconfig
145152
},
146153
unstubEnvs: true,
147154
unstubGlobals: true

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ __metadata:
13201320
to-vfile: "npm:8.0.0"
13211321
trash-cli: "npm:5.0.0"
13221322
ts-dedent: "npm:2.2.0"
1323-
typescript: "npm:5.4.0-beta"
1323+
typescript: "npm:5.4.3"
13241324
unist-builder: "npm:4.0.0"
13251325
unist-util-inspect: "npm:8.0.0"
13261326
unist-util-source: "npm:5.0.0"
@@ -9864,13 +9864,13 @@ __metadata:
98649864
languageName: node
98659865
linkType: hard
98669866

9867-
"typescript@npm:5.4.0-beta":
9868-
version: 5.4.0-beta
9869-
resolution: "typescript@npm:5.4.0-beta"
9867+
"typescript@npm:5.4.3":
9868+
version: 5.4.3
9869+
resolution: "typescript@npm:5.4.3"
98709870
bin:
98719871
tsc: bin/tsc
98729872
tsserver: bin/tsserver
9873-
checksum: 10/380556e1a843d1649ad1834eeacef491b28cf69951b6b7b41a413a49b15b88777961adff98140c900bef35c6bdcf6df1e09b6ebdff352ca8c3269deb971843b6
9873+
checksum: 10/de4c69f49a7ad4b1ea66a6dcc8b055ac34eb56af059a069d8988dd811c5e649be07e042e5bf573e8d0ac3ec2f30e6c999aa651cd09f6e9cbc6113749e8b6be20
98749874
languageName: node
98759875
linkType: hard
98769876

@@ -9884,13 +9884,13 @@ __metadata:
98849884
languageName: node
98859885
linkType: hard
98869886

9887-
"typescript@patch:typescript@npm%3A5.4.0-beta#optional!builtin<compat/typescript>":
9888-
version: 5.4.0-beta
9889-
resolution: "typescript@patch:typescript@npm%3A5.4.0-beta#optional!builtin<compat/typescript>::version=5.4.0-beta&hash=d69c25"
9887+
"typescript@patch:typescript@npm%3A5.4.3#optional!builtin<compat/typescript>":
9888+
version: 5.4.3
9889+
resolution: "typescript@patch:typescript@npm%3A5.4.3#optional!builtin<compat/typescript>::version=5.4.3&hash=d69c25"
98909890
bin:
98919891
tsc: bin/tsc
98929892
tsserver: bin/tsserver
9893-
checksum: 10/7188bd33c638cb19595e122eab95eae608b465873e837ea49df9e46c7a8e9c62e68d67a49e262d628d8c9263959fe92127b5f8cab34509c31b7920b8fcbaad20
9893+
checksum: 10/3abea475798fdf7ee46e75dafc50c85f30fd1e7061559ec2af61646f23d16c91742703f04f0ac55be52f58ca05c02f77404b7b94bbad16278c9a54c9eeb4f4ea
98949894
languageName: node
98959895
linkType: hard
98969896

0 commit comments

Comments
 (0)