Skip to content

Commit

Permalink
chore: upgrade TypeScript to v5.0 (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesha1201 committed Jan 14, 2024
1 parent 9126dc7 commit 93a6ab9
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
3 changes: 3 additions & 0 deletions lib/rules/no-await-sync-events.ts
Expand Up @@ -76,6 +76,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
property.id.name === 'delay' &&
isLiteral(property.init) &&
property.init.value &&
// @ts-expect-error -- TODO: fix me
property.init.value > 0
);
},
Expand All @@ -88,6 +89,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
isLiteral(node.right) &&
node.right.value !== null
) {
// @ts-expect-error -- TODO: fix me
hasDelayDeclarationOrAssignmentGTZero = node.right.value > 0;
}
},
Expand Down Expand Up @@ -141,6 +143,7 @@ export default createTestingLibraryRule<Options, MessageIds>({
property.key.name === 'delay' &&
isLiteral(property.value) &&
!!property.value.value &&
// @ts-expect-error -- TODO: fix me
property.value.value > 0
);

Expand Down
13 changes: 8 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -86,7 +86,7 @@
"prettier": "2.8.7",
"semantic-release": "^19.0.5",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
"typescript": "^5.0.4"
},
"peerDependencies": {
"eslint": "^7.5.0 || ^8.0.0"
Expand Down
20 changes: 11 additions & 9 deletions tsconfig.json
@@ -1,18 +1,20 @@
{
"compilerOptions": {
"strict": true,
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"target": "ES2019",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"lib": ["ES2019"],
"esModuleInterop": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true,
"noImplicitAny": true,
"outDir": "./dist",
"moduleDetection": "force",
"isolatedModules": true,
"removeComments": true,
"skipLibCheck": true,
"sourceMap": false,
"suppressImplicitAnyIndexErrors": true
// TODO: turn it on
"noUncheckedIndexedAccess": false,
"outDir": "dist",
"sourceMap": false
},
"include": ["./lib/**/*.ts"]
}

0 comments on commit 93a6ab9

Please sign in to comment.