Skip to content

Commit

Permalink
build(dependencies): update
Browse files Browse the repository at this point in the history
  • Loading branch information
95gabor committed Oct 8, 2024
1 parent a891c82 commit 632854c
Show file tree
Hide file tree
Showing 8 changed files with 6,832 additions and 4,072 deletions.
25 changes: 0 additions & 25 deletions .eslintrc.js

This file was deleted.

10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG TAG=20.11.0-alpine3.18
ARG TAG=20.18.0-alpine3.19
ARG CI=true
ARG PORT=3000

FROM node:${TAG} as prepare
FROM node:${TAG} AS prepare

USER node
WORKDIR /home/node/app
Expand All @@ -14,12 +14,12 @@ RUN npm ci
COPY --chown=node . .


FROM prepare as build
FROM prepare AS build

RUN npm run build


FROM node:${TAG} as dependencies
FROM node:${TAG} AS dependencies

USER node
WORKDIR /home/node/app
Expand All @@ -28,7 +28,7 @@ COPY --chown=node package*.json ./

RUN npm ci --only=production

FROM dependencies as production
FROM dependencies AS production

COPY --from=build --chown=node /home/node/app/dist ./dist
ENV HOST=0.0.0.0 PORT=${PORT}
Expand Down
24 changes: 24 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// @ts-check

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import prettier from 'eslint-plugin-prettier';
import sonarjs from 'eslint-plugin-sonarjs';

export default tseslint.config({
files: ['**/*.{ts,tsx}'],
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
sonarjs.configs.recommended,
],
ignores: ['**/node_modules', '**/dist', '**/coverage'],
plugins: {
prettier,
},
rules: {
'sonarjs/sonar-no-fallthrough': 'off',
'sonarjs/no-nested-conditional': 'off',
'sonarjs/todo-tag': 'warn',
},
});
Loading

0 comments on commit 632854c

Please sign in to comment.