Skip to content

Commit

Permalink
Add strict to tsconfig (#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
MalpenZibo authored and sandrotaje committed Nov 18, 2024
1 parent ceb7f3f commit ce2c095
Show file tree
Hide file tree
Showing 43 changed files with 479 additions and 225 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"prune-modules": "find . -name 'node_modules' -type d -exec rm -rf {} +"
},
"devDependencies": {
"@tsconfig/strictest": "2.0.5",
"@tsconfig/node-lts": "20.1.3",
"turbo": "2.0.4"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/agreement-email-sender/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc && pnpm cpx './src/resources/**/*' './dist/resources'",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -30,7 +30,7 @@
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"testcontainers": "10.9.0",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/agreement-lifecycle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm --watch ./src/index.ts",
"start": "tsx --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/agreement-outbound-writer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -23,7 +23,7 @@
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"testcontainers": "10.9.0",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/agreement-process/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc && pnpm cpx './src/resources/**/*' './dist/resources'",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -30,7 +30,7 @@
"prettier": "2.8.8",
"puppeteer": "22.11.2",
"testcontainers": "10.9.0",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/agreement-readmodel-writer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -25,7 +25,7 @@
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"testcontainers": "10.9.0",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0",
"@anatine/zod-mock": "3.13.4"
Expand Down
4 changes: 2 additions & 2 deletions packages/anac-certified-attributes-importer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -25,7 +25,7 @@
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"testcontainers": "10.9.0",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/api-clients/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json",
"generate-model": "node --loader ts-node/esm ./generate.ts",
"generate-model": "tsx ./generate.ts",
"clean-generated": "pnpm exec rm ./src/generated/*.ts"
},
"keywords": [],
Expand All @@ -31,7 +31,7 @@
"openapi-zod-client": "1.18.1",
"openapi3-ts": "3.1.0",
"prettier": "2.8.8",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -23,7 +23,7 @@
"@types/node": "20.14.6",
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/attribute-registry-process/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -27,7 +27,7 @@
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"testcontainers": "10.9.0",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/attribute-registry-readmodel-writer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -24,7 +24,7 @@
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"testcontainers": "10.9.0",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/authorization-process/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -24,7 +24,7 @@
"@types/node": "20.14.6",
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/authorization-updater/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json",
"test": "vitest",
Expand All @@ -28,7 +28,7 @@
"openapi-zod-client": "1.18.1",
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/backend-for-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -27,7 +27,7 @@
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"testcontainers": "10.9.0",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/catalog-outbound-writer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -23,7 +23,7 @@
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"testcontainers": "10.9.0",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/catalog-platformstate-writer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -25,7 +25,8 @@
"date-fns": "3.6.0",
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"ts-node": "10.9.2",
"testcontainers": "10.9.0",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/catalog-process/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -30,7 +30,7 @@
"pg-promise": "11.8.0",
"prettier": "2.8.8",
"testcontainers": "10.9.0",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/catalog-readmodel-writer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -26,7 +26,7 @@
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"testcontainers": "10.9.0",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/client-readmodel-writer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -25,7 +25,7 @@
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"testcontainers": "10.9.0",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm --watch ./src/index.ts",
"start": "tsx --watch ./src/index.ts",
"build": "tsc && pnpm run copy-sql-files && cpx './src/pdf-generator/paged.polyfill.js' './dist/pdf-generator'",
"check": "tsc --project tsconfig.check.json",
"copy-sql-files": "cp ./src/repositories/sql/*.sql dist/repositories/sql"
Expand Down
4 changes: 2 additions & 2 deletions packages/compute-agreements-consumer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -21,7 +21,7 @@
"@pagopa/eslint-config": "3.0.0",
"@types/node": "20.14.6",
"prettier": "2.8.8",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/datalake-data-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -22,7 +22,7 @@
"@pagopa/eslint-config": "3.0.0",
"pagopa-interop-commons-test": "workspace:*",
"prettier": "2.8.8",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/eservice-descriptors-archiver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint:autofix": "eslint . --ext .ts,.tsx --fix",
"format:check": "prettier --check src",
"format:write": "prettier --write src",
"start": "node --loader ts-node/esm -r 'dotenv-flow/config' --watch ./src/index.ts",
"start": "tsx -r 'dotenv-flow/config' --watch ./src/index.ts",
"build": "tsc",
"check": "tsc --project tsconfig.check.json"
},
Expand All @@ -25,7 +25,7 @@
"openapi-zod-client": "1.18.1",
"prettier": "2.8.8",
"testcontainers": "10.9.0",
"ts-node": "10.9.2",
"tsx": "4.19.1",
"typescript": "5.4.5",
"vitest": "1.6.0"
},
Expand Down
Loading

0 comments on commit ce2c095

Please sign in to comment.