mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-08 03:43:56 -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:
@@ -60,7 +60,7 @@
|
|||||||
"@types/react": "18.3.11",
|
"@types/react": "18.3.11",
|
||||||
"@types/react-dom": "18.3.0",
|
"@types/react-dom": "18.3.0",
|
||||||
"autoprefixer": "10.4.21",
|
"autoprefixer": "10.4.21",
|
||||||
"dotenv": "16.4.7",
|
"dotenv": "catalog:",
|
||||||
"eslint-config-next": "14.2.15",
|
"eslint-config-next": "14.2.15",
|
||||||
"nock": "14.0.1",
|
"nock": "14.0.1",
|
||||||
"postcss": "8.5.3",
|
"postcss": "8.5.3",
|
||||||
|
|||||||
@@ -36,14 +36,14 @@
|
|||||||
"@safe-global/safe-core-sdk-types": "4.0.2",
|
"@safe-global/safe-core-sdk-types": "4.0.2",
|
||||||
"@typechain/hardhat": "9.1.0",
|
"@typechain/hardhat": "9.1.0",
|
||||||
"@types/diff": "5.2.0",
|
"@types/diff": "5.2.0",
|
||||||
"@types/yargs": "17.0.32",
|
"@types/yargs": "catalog:",
|
||||||
"c-kzg": "2.1.2",
|
"c-kzg": "2.1.2",
|
||||||
"chai": "4.1.1",
|
"chai": "4.1.1",
|
||||||
"colors": "1.4.0",
|
"colors": "1.4.0",
|
||||||
"csv-parser": "3.0.0",
|
"csv-parser": "3.0.0",
|
||||||
"dotenv": "16.4.5",
|
"dotenv": "catalog:",
|
||||||
"edit-json-file": "1.8.0",
|
"edit-json-file": "1.8.0",
|
||||||
"ethers": "6.12.0",
|
"ethers": "catalog:",
|
||||||
"hardhat": "2.24.0",
|
"hardhat": "2.24.0",
|
||||||
"hardhat-deploy": "0.12.4",
|
"hardhat-deploy": "0.12.4",
|
||||||
"hardhat-storage-layout": "0.1.7",
|
"hardhat-storage-layout": "0.1.7",
|
||||||
@@ -51,10 +51,8 @@
|
|||||||
"node-gyp": "10.1.0",
|
"node-gyp": "10.1.0",
|
||||||
"prettier-plugin-solidity": "1.4.2",
|
"prettier-plugin-solidity": "1.4.2",
|
||||||
"solhint": "5.0.5",
|
"solhint": "5.0.5",
|
||||||
"yargs": "17.7.2"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"solidity-coverage": "0.8.16",
|
"solidity-coverage": "0.8.16",
|
||||||
"solidity-docgen": "0.6.0-beta.36"
|
"solidity-docgen": "0.6.0-beta.36",
|
||||||
|
"yargs": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": "../tsconfig.json",
|
"extends": "../tsconfig.json"
|
||||||
"compilerOptions": {
|
|
||||||
"skipLibCheck": true,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,17 +18,17 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@jest/globals": "29.7.0",
|
"@jest/globals": "catalog:",
|
||||||
"@openzeppelin/upgrades-core": "1.42.1",
|
"@openzeppelin/upgrades-core": "1.42.1",
|
||||||
"@typechain/ethers-v6": "0.5.1",
|
"@typechain/ethers-v6": "catalog:",
|
||||||
"@types/jest": "29.5.13",
|
"@types/jest": "catalog:",
|
||||||
"async-mutex": "^0.5.0",
|
"async-mutex": "^0.5.0",
|
||||||
"child_process": "1.0.2",
|
"child_process": "1.0.2",
|
||||||
"dotenv": "16.4.5",
|
"dotenv": "catalog:",
|
||||||
"ethers": "6.13.3",
|
"ethers": "catalog:",
|
||||||
"jest": "29.7.0",
|
"jest": "catalog:",
|
||||||
"ts-jest": "29.2.5",
|
"ts-jest": "catalog:",
|
||||||
"typechain": "8.3.2",
|
"typechain": "catalog:",
|
||||||
"winston": "3.17.0"
|
"winston": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,15 +2,8 @@
|
|||||||
"extends": "../tsconfig.json",
|
"extends": "../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"types": ["node", "jest"],
|
"types": ["node", "jest"],
|
||||||
"removeComments": true,
|
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"target": "es2021",
|
|
||||||
"baseUrl": "./",
|
|
||||||
"outDir": "./dist",
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"isolatedModules": true,
|
|
||||||
"noFallthroughCasesInSwitch": true,
|
|
||||||
"strictPropertyInitialization": false,
|
"strictPropertyInitialization": false,
|
||||||
},
|
},
|
||||||
"references": [
|
"references": [
|
||||||
|
|||||||
@@ -23,16 +23,16 @@
|
|||||||
"@oclif/plugin-help": "6.2.13",
|
"@oclif/plugin-help": "6.2.13",
|
||||||
"@oclif/plugin-plugins": "5.4.10",
|
"@oclif/plugin-plugins": "5.4.10",
|
||||||
"axios": "1.7.7",
|
"axios": "1.7.7",
|
||||||
"ethers": "6.13.2"
|
"ethers": "catalog:"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@jest/globals": "29.7.0",
|
"@jest/globals": "catalog:",
|
||||||
"@oclif/test": "4.0.9",
|
"@oclif/test": "4.0.9",
|
||||||
"@types/jest": "29.5.13",
|
"@types/jest": "catalog:",
|
||||||
"jest": "29.7.0",
|
"jest": "catalog:",
|
||||||
"jest-mock-extended": "3.0.5",
|
"jest-mock-extended": "catalog:",
|
||||||
"shx": "0.3.4",
|
"shx": "0.3.4",
|
||||||
"ts-jest": "29.2.5"
|
"ts-jest": "catalog:"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20"
|
"node": ">=20"
|
||||||
|
|||||||
@@ -1,15 +1,7 @@
|
|||||||
{
|
{
|
||||||
"extends": "../tsconfig.json",
|
"extends": "../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"declaration": true,
|
"rootDir": "src"
|
||||||
"module": "ES2022",
|
|
||||||
"outDir": "dist",
|
|
||||||
"rootDir": "src",
|
|
||||||
"strict": true,
|
|
||||||
"target": "es2022",
|
|
||||||
"moduleResolution": "Node",
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
},
|
},
|
||||||
"include": ["./src/**/*"],
|
"include": ["./src/**/*"],
|
||||||
"exclude": ["node_modules", "dist"]
|
"exclude": ["node_modules", "dist"]
|
||||||
|
|||||||
1278
pnpm-lock.yaml
generated
1278
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -6,4 +6,19 @@ packages:
|
|||||||
- 'operations/**'
|
- 'operations/**'
|
||||||
- 'bridge-ui/**'
|
- 'bridge-ui/**'
|
||||||
- 'ts-libs/**'
|
- 'ts-libs/**'
|
||||||
- '!contracts/lib/**'
|
- '!contracts/lib/**'
|
||||||
|
|
||||||
|
catalog:
|
||||||
|
"@jest/globals": 29.7.0
|
||||||
|
"@typechain/ethers-v6": 0.5.1
|
||||||
|
"@types/jest": 29.5.14
|
||||||
|
"@types/yargs": 17.0.33
|
||||||
|
dotenv: 16.5.0
|
||||||
|
ethers: 6.13.7 # TODO in later ticket - investigate why SDK build seems to break with ^6.14.0
|
||||||
|
jest: 29.7.0
|
||||||
|
jest-mock-extended: 3.0.7
|
||||||
|
prettier: 3.5.3
|
||||||
|
ts-jest: 29.3.4
|
||||||
|
typechain: 8.3.2
|
||||||
|
winston: 3.17.0
|
||||||
|
yargs: 17.7.2
|
||||||
@@ -23,25 +23,25 @@
|
|||||||
"@consensys/linea-sdk": "workspace:*",
|
"@consensys/linea-sdk": "workspace:*",
|
||||||
"better-sqlite3": "11.6.0",
|
"better-sqlite3": "11.6.0",
|
||||||
"class-validator": "0.14.1",
|
"class-validator": "0.14.1",
|
||||||
"dotenv": "16.4.5",
|
"dotenv": "catalog:",
|
||||||
"ethers": "6.13.4",
|
"ethers": "catalog:",
|
||||||
"express": "5.1.0",
|
"express": "5.1.0",
|
||||||
"filtrex": "3.1.0",
|
"filtrex": "3.1.0",
|
||||||
"pg": "8.13.1",
|
"pg": "8.13.1",
|
||||||
"prom-client": "15.1.3",
|
"prom-client": "15.1.3",
|
||||||
"typeorm": "0.3.20",
|
"typeorm": "0.3.20",
|
||||||
"typeorm-naming-strategies": "4.1.0",
|
"typeorm-naming-strategies": "4.1.0",
|
||||||
"winston": "3.17.0"
|
"winston": "catalog:"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@jest/globals": "29.7.0",
|
"@jest/globals": "catalog:",
|
||||||
"@types/express": "5.0.1",
|
"@types/express": "5.0.1",
|
||||||
"@types/jest": "29.5.14",
|
"@types/jest": "catalog:",
|
||||||
"@types/yargs": "17.0.33",
|
"@types/yargs": "catalog:",
|
||||||
"jest": "29.7.0",
|
"jest": "catalog:",
|
||||||
"jest-mock-extended": "3.0.5",
|
"jest-mock-extended": "catalog:",
|
||||||
"ts-jest": "29.2.5",
|
"ts-jest": "catalog:",
|
||||||
"yargs": "17.7.2"
|
"yargs": "catalog:"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist/**/*"
|
"dist/**/*"
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ describe("ErrorParser", () => {
|
|||||||
const error = makeError("any reason", "NETWORK_ERROR");
|
const error = makeError("any reason", "NETWORK_ERROR");
|
||||||
|
|
||||||
expect(ErrorParser.parseEthersError(error)).toStrictEqual({
|
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",
|
errorCode: "NETWORK_ERROR",
|
||||||
mitigation: {
|
mitigation: {
|
||||||
shouldRetry: true,
|
shouldRetry: true,
|
||||||
@@ -50,7 +50,7 @@ describe("ErrorParser", () => {
|
|||||||
const error = makeError("any reason", "SERVER_ERROR");
|
const error = makeError("any reason", "SERVER_ERROR");
|
||||||
|
|
||||||
expect(ErrorParser.parseEthersError(error)).toStrictEqual({
|
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",
|
errorCode: "SERVER_ERROR",
|
||||||
mitigation: {
|
mitigation: {
|
||||||
shouldRetry: true,
|
shouldRetry: true,
|
||||||
@@ -62,7 +62,7 @@ describe("ErrorParser", () => {
|
|||||||
const error = makeError("any reason", "TIMEOUT");
|
const error = makeError("any reason", "TIMEOUT");
|
||||||
|
|
||||||
expect(ErrorParser.parseEthersError(error)).toStrictEqual({
|
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",
|
errorCode: "TIMEOUT",
|
||||||
mitigation: {
|
mitigation: {
|
||||||
shouldRetry: true,
|
shouldRetry: true,
|
||||||
@@ -74,7 +74,7 @@ describe("ErrorParser", () => {
|
|||||||
const error = makeError("any reason", "INSUFFICIENT_FUNDS");
|
const error = makeError("any reason", "INSUFFICIENT_FUNDS");
|
||||||
|
|
||||||
expect(ErrorParser.parseEthersError(error)).toStrictEqual({
|
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",
|
errorCode: "INSUFFICIENT_FUNDS",
|
||||||
mitigation: {
|
mitigation: {
|
||||||
shouldRetry: true,
|
shouldRetry: true,
|
||||||
@@ -86,7 +86,7 @@ describe("ErrorParser", () => {
|
|||||||
const error = makeError("any reason", "REPLACEMENT_UNDERPRICED");
|
const error = makeError("any reason", "REPLACEMENT_UNDERPRICED");
|
||||||
|
|
||||||
expect(ErrorParser.parseEthersError(error)).toStrictEqual({
|
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",
|
errorCode: "REPLACEMENT_UNDERPRICED",
|
||||||
mitigation: {
|
mitigation: {
|
||||||
shouldRetry: true,
|
shouldRetry: true,
|
||||||
@@ -98,7 +98,7 @@ describe("ErrorParser", () => {
|
|||||||
const error = makeError("any reason", "NONCE_EXPIRED");
|
const error = makeError("any reason", "NONCE_EXPIRED");
|
||||||
|
|
||||||
expect(ErrorParser.parseEthersError(error)).toStrictEqual({
|
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",
|
errorCode: "NONCE_EXPIRED",
|
||||||
mitigation: {
|
mitigation: {
|
||||||
shouldRetry: true,
|
shouldRetry: true,
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
{
|
{
|
||||||
"extends": "../tsconfig.json",
|
"extends": "../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["ES2021", "DOM"],
|
|
||||||
"noEmit": false,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"strictPropertyInitialization": false,
|
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
|
"strictPropertyInitialization": false,
|
||||||
|
"exactOptionalPropertyTypes": false
|
||||||
},
|
},
|
||||||
"references": [
|
"references": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,17 +19,17 @@
|
|||||||
"test": "npx jest --bail --detectOpenHandles --forceExit"
|
"test": "npx jest --bail --detectOpenHandles --forceExit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ethers": "6.13.4",
|
"ethers": "catalog:",
|
||||||
"lru-cache": "11.0.2"
|
"lru-cache": "11.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@jest/globals": "29.7.0",
|
"@jest/globals": "catalog:",
|
||||||
"@typechain/ethers-v6": "0.5.1",
|
"@typechain/ethers-v6": "catalog:",
|
||||||
"@types/jest": "29.5.14",
|
"@types/jest": "catalog:",
|
||||||
"jest": "29.7.0",
|
"jest": "catalog:",
|
||||||
"jest-mock-extended": "3.0.5",
|
"jest-mock-extended": "catalog:",
|
||||||
"ts-jest": "29.2.5",
|
"ts-jest": "catalog:",
|
||||||
"typechain": "8.3.2"
|
"typechain": "catalog:"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
{
|
{
|
||||||
"extends": "../tsconfig.json",
|
"extends": "../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["ES2021", "DOM"],
|
|
||||||
"noEmit": false,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"noErrorTruncation": true,
|
|
||||||
"strictPropertyInitialization": false,
|
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"composite": true
|
"composite": true,
|
||||||
|
"removeComments": false,
|
||||||
|
"isolatedModules": false,
|
||||||
|
"strictPropertyInitialization": false,
|
||||||
|
"exactOptionalPropertyTypes": false
|
||||||
},
|
},
|
||||||
"exclude": ["./dist", "**/node_modules"]
|
"exclude": ["./dist", "**/node_modules"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,13 +28,13 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@jest/globals": "29.7.0",
|
"@jest/globals": "catalog:",
|
||||||
"@types/jest": "29.5.14",
|
"@types/jest": "catalog:",
|
||||||
"@types/unzipper": "0.10.11",
|
"@types/unzipper": "0.10.11",
|
||||||
"dotenv": "16.5.0",
|
"dotenv": "catalog:",
|
||||||
"jest": "29.7.0",
|
"jest": "catalog:",
|
||||||
"jest-it-up": "4.0.1",
|
"jest-it-up": "4.0.1",
|
||||||
"ts-jest": "29.3.2",
|
"ts-jest": "catalog:",
|
||||||
"tsup": "8.4.0",
|
"tsup": "8.4.0",
|
||||||
"unzipper": "0.12.3",
|
"unzipper": "0.12.3",
|
||||||
"viem": "2.29.1"
|
"viem": "2.29.1"
|
||||||
|
|||||||
@@ -1,17 +1,9 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.json",
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"esModuleInterop": true,
|
|
||||||
"exactOptionalPropertyTypes": true,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"lib": ["ES2020"],
|
|
||||||
"module": "CommonJS",
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"noErrorTruncation": true,
|
|
||||||
"noUncheckedIndexedAccess": true,
|
"noUncheckedIndexedAccess": true,
|
||||||
"strict": true,
|
"composite": true,
|
||||||
"target": "es2020",
|
"removeComments": false
|
||||||
"composite": true
|
|
||||||
},
|
},
|
||||||
"exclude": ["./dist", "**/node_modules"]
|
"exclude": ["./dist", "**/node_modules"]
|
||||||
}
|
}
|
||||||
@@ -2,20 +2,23 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "node",
|
||||||
"module": "CommonJS",
|
"module": "commonjs",
|
||||||
"target": "ES2021",
|
"target": "es2022",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"alwaysStrict": true,
|
|
||||||
"strictNullChecks": true,
|
|
||||||
"noImplicitAny": true,
|
|
||||||
"noImplicitReturns": true,
|
"noImplicitReturns": true,
|
||||||
"noImplicitThis": true,
|
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"forceConsistentCasingInFileNames": true
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
"removeComments": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"noErrorTruncation": true,
|
||||||
|
"exactOptionalPropertyTypes": true,
|
||||||
|
"noEmit": false
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", "dist", "*.d.ts"]
|
"exclude": ["node_modules", "dist", "*.d.ts"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user