mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 04:08:01 -05:00
[WIP - Tech Debt] Typescript config cleanup (#1073)
* initial tsconfig.json consolidation * consolidate skipLibCheck * more consolidate tsconfig.json * remove strict duplicates * remove strict duplicates * removed lib * more changes * more changes * more changes * centralize noEmit * run pnpm dedupe * catalog for ethers and dotenv * Revert "catalog for ethers and dotenv" This reverts commit 8fc18db1c6f754ecbf1b175b34f6ebf08837068a. * first catalog * added more dependencies to catalog * apply catalog to many dev dependencies * ethers in catalog * finetune ethers version * fixes * empty
This commit is contained in:
@@ -23,25 +23,25 @@
|
||||
"@consensys/linea-sdk": "workspace:*",
|
||||
"better-sqlite3": "11.6.0",
|
||||
"class-validator": "0.14.1",
|
||||
"dotenv": "16.4.5",
|
||||
"ethers": "6.13.4",
|
||||
"dotenv": "catalog:",
|
||||
"ethers": "catalog:",
|
||||
"express": "5.1.0",
|
||||
"filtrex": "3.1.0",
|
||||
"pg": "8.13.1",
|
||||
"prom-client": "15.1.3",
|
||||
"typeorm": "0.3.20",
|
||||
"typeorm-naming-strategies": "4.1.0",
|
||||
"winston": "3.17.0"
|
||||
"winston": "catalog:"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/globals": "29.7.0",
|
||||
"@jest/globals": "catalog:",
|
||||
"@types/express": "5.0.1",
|
||||
"@types/jest": "29.5.14",
|
||||
"@types/yargs": "17.0.33",
|
||||
"jest": "29.7.0",
|
||||
"jest-mock-extended": "3.0.5",
|
||||
"ts-jest": "29.2.5",
|
||||
"yargs": "17.7.2"
|
||||
"@types/jest": "catalog:",
|
||||
"@types/yargs": "catalog:",
|
||||
"jest": "catalog:",
|
||||
"jest-mock-extended": "catalog:",
|
||||
"ts-jest": "catalog:",
|
||||
"yargs": "catalog:"
|
||||
},
|
||||
"files": [
|
||||
"dist/**/*"
|
||||
|
||||
@@ -38,7 +38,7 @@ describe("ErrorParser", () => {
|
||||
const error = makeError("any reason", "NETWORK_ERROR");
|
||||
|
||||
expect(ErrorParser.parseEthersError(error)).toStrictEqual({
|
||||
errorMessage: "any reason (code=NETWORK_ERROR, version=6.13.4)",
|
||||
errorMessage: "any reason (code=NETWORK_ERROR, version=6.13.7)",
|
||||
errorCode: "NETWORK_ERROR",
|
||||
mitigation: {
|
||||
shouldRetry: true,
|
||||
@@ -50,7 +50,7 @@ describe("ErrorParser", () => {
|
||||
const error = makeError("any reason", "SERVER_ERROR");
|
||||
|
||||
expect(ErrorParser.parseEthersError(error)).toStrictEqual({
|
||||
errorMessage: "any reason (code=SERVER_ERROR, version=6.13.4)",
|
||||
errorMessage: "any reason (code=SERVER_ERROR, version=6.13.7)",
|
||||
errorCode: "SERVER_ERROR",
|
||||
mitigation: {
|
||||
shouldRetry: true,
|
||||
@@ -62,7 +62,7 @@ describe("ErrorParser", () => {
|
||||
const error = makeError("any reason", "TIMEOUT");
|
||||
|
||||
expect(ErrorParser.parseEthersError(error)).toStrictEqual({
|
||||
errorMessage: "any reason (code=TIMEOUT, version=6.13.4)",
|
||||
errorMessage: "any reason (code=TIMEOUT, version=6.13.7)",
|
||||
errorCode: "TIMEOUT",
|
||||
mitigation: {
|
||||
shouldRetry: true,
|
||||
@@ -74,7 +74,7 @@ describe("ErrorParser", () => {
|
||||
const error = makeError("any reason", "INSUFFICIENT_FUNDS");
|
||||
|
||||
expect(ErrorParser.parseEthersError(error)).toStrictEqual({
|
||||
errorMessage: "any reason (code=INSUFFICIENT_FUNDS, version=6.13.4)",
|
||||
errorMessage: "any reason (code=INSUFFICIENT_FUNDS, version=6.13.7)",
|
||||
errorCode: "INSUFFICIENT_FUNDS",
|
||||
mitigation: {
|
||||
shouldRetry: true,
|
||||
@@ -86,7 +86,7 @@ describe("ErrorParser", () => {
|
||||
const error = makeError("any reason", "REPLACEMENT_UNDERPRICED");
|
||||
|
||||
expect(ErrorParser.parseEthersError(error)).toStrictEqual({
|
||||
errorMessage: "any reason (code=REPLACEMENT_UNDERPRICED, version=6.13.4)",
|
||||
errorMessage: "any reason (code=REPLACEMENT_UNDERPRICED, version=6.13.7)",
|
||||
errorCode: "REPLACEMENT_UNDERPRICED",
|
||||
mitigation: {
|
||||
shouldRetry: true,
|
||||
@@ -98,7 +98,7 @@ describe("ErrorParser", () => {
|
||||
const error = makeError("any reason", "NONCE_EXPIRED");
|
||||
|
||||
expect(ErrorParser.parseEthersError(error)).toStrictEqual({
|
||||
errorMessage: "any reason (code=NONCE_EXPIRED, version=6.13.4)",
|
||||
errorMessage: "any reason (code=NONCE_EXPIRED, version=6.13.7)",
|
||||
errorCode: "NONCE_EXPIRED",
|
||||
mitigation: {
|
||||
shouldRetry: true,
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"lib": ["ES2021", "DOM"],
|
||||
"noEmit": false,
|
||||
"skipLibCheck": true,
|
||||
"strictPropertyInitialization": false,
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"strictPropertyInitialization": false,
|
||||
"exactOptionalPropertyTypes": false
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user