diff --git a/lib/rules/no-await-sync-events.ts b/lib/rules/no-await-sync-events.ts index 989ddcda..514fe225 100644 --- a/lib/rules/no-await-sync-events.ts +++ b/lib/rules/no-await-sync-events.ts @@ -76,6 +76,7 @@ export default createTestingLibraryRule({ property.id.name === 'delay' && isLiteral(property.init) && property.init.value && + // @ts-expect-error -- TODO: fix me property.init.value > 0 ); }, @@ -88,6 +89,7 @@ export default createTestingLibraryRule({ isLiteral(node.right) && node.right.value !== null ) { + // @ts-expect-error -- TODO: fix me hasDelayDeclarationOrAssignmentGTZero = node.right.value > 0; } }, @@ -141,6 +143,7 @@ export default createTestingLibraryRule({ property.key.name === 'delay' && isLiteral(property.value) && !!property.value.value && + // @ts-expect-error -- TODO: fix me property.value.value > 0 ); diff --git a/package-lock.json b/package-lock.json index 7371080b..56f6056a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,7 +44,7 @@ "prettier": "2.8.7", "semantic-release": "^19.0.5", "ts-node": "^10.9.1", - "typescript": "^4.9.5" + "typescript": "^5.0.4" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0", @@ -15077,14 +15077,15 @@ } }, "node_modules/typescript": { - "version": "4.9.5", - "license": "Apache-2.0", + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", + "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=12.20" } }, "node_modules/uglify-js": { @@ -25217,7 +25218,9 @@ } }, "typescript": { - "version": "4.9.5" + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", + "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==" }, "uglify-js": { "version": "3.17.4", diff --git a/package.json b/package.json index 1e9ca2d2..1197df8b 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/tsconfig.json b/tsconfig.json index 338535e1..b4fb3559 100644 --- a/tsconfig.json +++ b/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"] }