From b8e91b5b2b3c91b1393a2b8d32356d1649edd535 Mon Sep 17 00:00:00 2001 From: Thomas Hoppe Date: Wed, 20 Nov 2024 18:37:45 +0100 Subject: [PATCH] chore: upgrade deps --- .eslintrc.cjs | 11 ----------- Dockerfile | 4 ++-- eslint.config.mjs | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+), 13 deletions(-) delete mode 100644 .eslintrc.cjs create mode 100644 eslint.config.mjs diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index 1cde600..0000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = { - extends: './node_modules/@restorecommerce/dev/.eslintrc.cjs', - parserOptions: { - project: [ - 'tsconfig.json', - ], - }, - rules: { - '@typescript-eslint/consistent-type-imports': 0 - } -}; \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 34e402a..330e371 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ ### Build -FROM node:22.2.0-alpine3.20 as build +FROM node:22.11.0-alpine3.20 as build ENV NO_UPDATE_NOTIFIER=true USER node @@ -17,7 +17,7 @@ RUN npm run build ### Deployment -FROM node:22.2.0-alpine3.20 as deployment +FROM node:22.11.0-alpine3.20 as deployment ENV NO_UPDATE_NOTIFIER=true diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..b5d8bfe --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,22 @@ +// @ts-check + +import eslint from '@eslint/js'; +import { RuleTester } from 'eslint'; +import tseslint from 'typescript-eslint'; + +const rules = tseslint.config( + eslint.configs.recommended, + ...tseslint.configs.recommended, +); + +rules.push( + { + "rules": { + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-unused-vars": "off", + "prefer-rest-params": "off", + } + } +); + +export default rules;