Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwwinter committed Aug 5, 2024
1 parent 5ba4bdb commit 1ba7a4c
Show file tree
Hide file tree
Showing 8 changed files with 6,843 additions and 11,831 deletions.
25 changes: 0 additions & 25 deletions .eslintrc.js

This file was deleted.

9 changes: 5 additions & 4 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
# Run the following commands from the root folder to build, run and kill the application
# >> docker build -f build/Dockerfile -t account-ms:latest .
# >> docker run -p=80:80 account-ms:latest
FROM node:16.13.0-alpine3.13 as builder
FROM node:20-alpine as builder
WORKDIR /app

COPY package*.json ./
COPY package.json package-lock.json ./

RUN npm ci --no-progress

COPY . .
Expand Down Expand Up @@ -40,12 +41,12 @@ ARG GIT_COMMITTED_AT
ARG CC_TEST_REPORTER_ID
RUN if [ "$UPLOAD_COVERAGE" = true ] ; then ./cc-test-reporter after-build --debug ; fi

FROM node:16.13.0-alpine3.13
FROM node:20-alpine
WORKDIR /app
# Some packages enable optimization when this is set
ENV NODE_ENV="production"

COPY package*.json ./
COPY package.json package-lock.json ./
RUN npm ci --no-progress --only=production

COPY --from=builder /app/dist ./dist
Expand Down
30 changes: 30 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const tsPlugin = require('@typescript-eslint/eslint-plugin');
const tsParser = require('@typescript-eslint/parser');

const pluginPrettier = require('eslint-config-prettier');

module.exports = [
{
languageOptions: {
parser: tsParser,
parserOptions: {
tsconfigRootDir: __dirname,
sourceType: 'module',
},
globals: {
node: true,
jest: true,
},
},
plugins: {
'@typescript-eslint/eslint-plugin': tsPlugin,
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
},
pluginPrettier,
];
Loading

0 comments on commit 1ba7a4c

Please sign in to comment.