Skip to content

Commit 93a6ab9

Browse files
authored
chore: upgrade TypeScript to v5.0 (#858)
1 parent 9126dc7 commit 93a6ab9

File tree

4 files changed

+23
-15
lines changed

4 files changed

+23
-15
lines changed

lib/rules/no-await-sync-events.ts

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
7676
property.id.name === 'delay' &&
7777
isLiteral(property.init) &&
7878
property.init.value &&
79+
// @ts-expect-error -- TODO: fix me
7980
property.init.value > 0
8081
);
8182
},
@@ -88,6 +89,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
8889
isLiteral(node.right) &&
8990
node.right.value !== null
9091
) {
92+
// @ts-expect-error -- TODO: fix me
9193
hasDelayDeclarationOrAssignmentGTZero = node.right.value > 0;
9294
}
9395
},
@@ -141,6 +143,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
141143
property.key.name === 'delay' &&
142144
isLiteral(property.value) &&
143145
!!property.value.value &&
146+
// @ts-expect-error -- TODO: fix me
144147
property.value.value > 0
145148
);
146149

package-lock.json

+8-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"prettier": "2.8.7",
8787
"semantic-release": "^19.0.5",
8888
"ts-node": "^10.9.1",
89-
"typescript": "^4.9.5"
89+
"typescript": "^5.0.4"
9090
},
9191
"peerDependencies": {
9292
"eslint": "^7.5.0 || ^8.0.0"

tsconfig.json

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
{
22
"compilerOptions": {
33
"strict": true,
4-
"target": "es6",
5-
"module": "commonjs",
6-
"moduleResolution": "node",
4+
"target": "ES2019",
5+
"module": "NodeNext",
6+
"moduleResolution": "NodeNext",
7+
"lib": ["ES2019"],
78
"esModuleInterop": true,
9+
"skipLibCheck": true,
810
"resolveJsonModule": true,
9-
"forceConsistentCasingInFileNames": true,
10-
"noImplicitAny": true,
11-
"outDir": "./dist",
11+
"moduleDetection": "force",
12+
"isolatedModules": true,
1213
"removeComments": true,
13-
"skipLibCheck": true,
14-
"sourceMap": false,
15-
"suppressImplicitAnyIndexErrors": true
14+
// TODO: turn it on
15+
"noUncheckedIndexedAccess": false,
16+
"outDir": "dist",
17+
"sourceMap": false
1618
},
1719
"include": ["./lib/**/*.ts"]
1820
}

0 commit comments

Comments
 (0)