Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IOPLT-932] Upgrade to node version 20.17.0 #1178

Merged
merged 13 commits into from
Feb 3, 2025
29 changes: 0 additions & 29 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.13.0
20.17.0
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.13.0
20.17.0
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# .prettierrc
parser: typescript
trailingComma: "none"
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.13.0 as builder
FROM node:20.17.0 as builder

WORKDIR /usr/src/app

Expand All @@ -7,7 +7,7 @@ COPY / /usr/src/app/
RUN yarn install \
&& yarn predeploy

FROM node:18.13.0-alpine
FROM node:20.17.0-alpine
LABEL maintainer="https://pagopa.gov.it"

# Install major CA certificates to cover
Expand Down
34 changes: 34 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import pagopa from "@pagopa/eslint-config";

export default [
...pagopa,
{
rules: {
robbcocco marked this conversation as resolved.
Show resolved Hide resolved
"comma-dangle": "off",
"perfectionist/sort-classes": "off",
"perfectionist/sort-enums": "off",
"perfectionist/sort-interfaces": "off",
"perfectionist/sort-intersection-types": "off",
"perfectionist/sort-objects": "off",
"perfectionist/sort-object-types": "off",
"perfectionist/sort-union-types": "off",
"prefer-arrow/prefer-arrow-functions": "off",
"@typescript-eslint/array-type": ["error", { default: "generic" }],
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"no-invalid-this": "off"
}
},
{
ignores: [
"node_modules",
"generated",
"dist",
"**/__tests__/*",
"**/__mocks__/*",
"Dangerfile.*",
"**/*.d.ts"
]
}
];
26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"description": "IO app and web backend",
"main": "index.js",
"engines": {
"node": "18.13.0"
"node": "20.17.0"
},
"scripts": {
"watch": "tsc -w",
"prebuild": "yarn generate:proxy-models",
"build": "tsc",
"build-noemit": "tsc --noEmit",
"hot-reload": "nodemon --legacy-watch --watch ./dist/src --inspect=0.0.0.0:5859 --nolazy dist/src/server.js",
"lint": "eslint . -c .eslintrc.js --ext .ts,.tsx --cache",
"lint-autofix": "eslint . -c .eslintrc.js --ext .ts,.tsx --fix",
"lint": "eslint . --cache",
"lint-autofix": "eslint . --fix",
"prettify": "prettier --write \"./**/*.ts\"",
"test": "jest -i",
"test:coverage": "jest -i --coverage",
Expand Down Expand Up @@ -88,21 +88,21 @@
"@azure/storage-queue": "^12.0.0",
"@pagopa/io-functions-app-sdk": "x",
"@pagopa/io-functions-cgn-sdk": "x",
"@pagopa/io-functions-commons": "^29.1.1",
"@pagopa/io-functions-commons": "^29.3.0",
"@pagopa/io-functions-eucovidcerts-sdk": "x",
"@pagopa/ts-commons": "^12.4.1",
"@pagopa/ts-commons": "^13.1.2",
"@pagopa/winston-ts": "^2.2.0",
"applicationinsights": "1.8.10",
"applicationinsights": "^2.9.5",
"body-parser": "^1.19.2",
"bwip-js": "^2.0.6",
"date-fns": "^1.30.1",
"dotenv": "^6.0.0",
"express": "4.17.3",
"express-enforces-ssl": "1.1.0",
"fp-ts": "2.14.0",
"fp-ts": "^2.16.5",
"helmet": "3.23.3",
"http-graceful-shutdown": "^2.3.2",
"io-ts": "2.2.20",
"io-ts": "2.2.21",
"io-ts-types": "^0.5.16",
"monocle-ts": "^2.3.13",
"morgan": "^1.9.1",
Expand All @@ -123,7 +123,7 @@
"winston": "^3.3.3"
},
"devDependencies": {
"@pagopa/eslint-config": "^3.0.0",
"@pagopa/eslint-config": "^4.0.0",
"@pagopa/openapi-codegen-ts": "^14.0.0",
"@types/dotenv": "^4.0.2",
"@types/express": "4.17.11",
Expand All @@ -134,7 +134,7 @@
"@types/jsonwebtoken": "7.2.7",
"@types/lolex": "2.1.3",
"@types/morgan": "^1.7.35",
"@types/node": "~18.13.0",
"@types/node": "^20.17.0",
"@types/node-fetch": "^2.1.2",
"@types/passport": "^1.0.2",
"@types/passport-http-bearer": "^1.0.34",
Expand All @@ -151,13 +151,14 @@
"@types/xml2js": "^0.4.5",
"auto-changelog": "^2.2.1",
"dotenv-cli": "^3.1.0",
"eslint": "8.57.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.5.0",
"lolex": "4.2.0",
"modclean": "^3.0.0-beta.1",
"nodemon": "^2.0.22",
"npm-run-all": "^4.1.3",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"shx": "^0.3.2",
"superagent": "^3.8.3",
"supertest": "^3.3.0",
Expand Down Expand Up @@ -200,8 +201,9 @@
},
"resolutions": {
"handlebars": "~4.5.3",
"applicationinsights": "1.8.10",
"applicationinsights": "~2.9.5",
"@types/serve-static": "1.13.10",
"@types/node": "^20.17.0",
"@types/express-serve-static-core": "4.17.34"
}
}
Loading