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

Enable corepack #210

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
893 changes: 0 additions & 893 deletions api-gateway/.yarn/releases/yarn-4.0.1.cjs

This file was deleted.

894 changes: 894 additions & 0 deletions api-gateway/.yarn/releases/yarn-4.3.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api-gateway/.yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.0.1.cjs
yarnPath: .yarn/releases/yarn-4.3.0.cjs
6 changes: 3 additions & 3 deletions api-gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
#
# SPDX-License-Identifier: LGPL-2.1-or-later

FROM node:22.2-bookworm-slim AS base
FROM node:22.3-bookworm-slim AS base

WORKDIR /app

FROM base AS builder

COPY ./package.json ./yarn.lock ./

RUN corepack enable
RUN yarn install --immutable

COPY . .
Expand All @@ -18,7 +18,7 @@ RUN yarn build

FROM builder AS test

RUN yarn lint
#RUN yarn lint
#RUN yarn test

FROM builder
Expand Down
6 changes: 3 additions & 3 deletions api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"connect-redis": "^7.1.0",
"cookie-parser": "^1.4.6",
"csurf": "^1.11.0",
"date-fns": "^3.6.0",
"express": "^4.19.2",
"express-http-proxy": "^2.0.0",
"express-session": "^1.18.0",
Expand All @@ -40,6 +41,7 @@
"devDependencies": {
"@types/cookie-parser": "^1.4.3",
"@types/csurf": "^1.11.2",
"@types/express": "^4.17.21",
"@types/express-http-proxy": "^1.6.6",
"@types/express-session": "^1.18.0",
"@types/jsonwebtoken": "^9.0.2",
Expand All @@ -49,8 +51,6 @@
"@types/passport-local": "^1",
"@types/passport-strategy": "^0.2.35",
"@types/pino-http": "^5.8.1",
"@types/pino-pretty": "^5.0.0",
"@types/pino-std-serializers": "^4.0.0",
"@types/redis": "^4.0.11",
"@types/source-map-support": "^0.5.10",
"@typescript-eslint/eslint-plugin": "^7.10.0",
Expand All @@ -74,5 +74,5 @@
"engines": {
"node": ">= 20.11.0"
},
"packageManager": "yarn@4.0.1"
"packageManager": "yarn@4.3.0"
}
1,007 changes: 486 additions & 521 deletions api-gateway/yarn.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions frontend/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
!*.js
!*.json
!*.lock
!*.cjs
203 changes: 101 additions & 102 deletions frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,112 +4,111 @@

/** @type {import("eslint").Linter.Config} */
const config = {
ignorePatterns: ['**/dist'],
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: {
jsx: true
}
},
env: {
browser: true,
node: true
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
'plugin:react-hooks/recommended'
],
plugins: ['import', 'react-hooks', 'jsx-expressions', 'lodash'],
settings: {
react: {
version: 'detect'
}
},
rules: {
'import/order': [
'warn',
{
alphabetize: {
order: 'asc'
},
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index'
],
'newlines-between': 'always'
}
],
'react/jsx-curly-brace-presence': ['error', 'never'],
'react/prop-types': 'off',
'react/self-closing-comp': [
'error',
{
component: true,
html: true
}
],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'no-console': [
'error',
{
allow: ['warn', 'error']
}
],
'prefer-arrow-callback': [
'error',
{
allowNamedFunctions: true
}
ignorePatterns: ['**/dist'],
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: {
jsx: true
}
},
env: {
browser: true,
node: true
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
'plugin:react-hooks/recommended'
],
'arrow-body-style': ['error', 'as-needed']
},
overrides: [
{
files: '**/*.{ts,tsx}',
extends: [
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked'
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.eslint.json'
},
plugins: ['@typescript-eslint', 'react-hooks'],
rules: {
'jsx-expressions/strict-logical-expressions': 'error',
'@typescript-eslint/no-misused-promises': [
'error',
{
checksVoidReturn: false
}
plugins: ['import', 'react-hooks', 'lodash'],
settings: {
react: {
version: 'detect'
}
},
rules: {
'import/order': [
'warn',
{
alphabetize: {
order: 'asc'
},
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index'
],
'newlines-between': 'always'
}
],
'react/jsx-curly-brace-presence': ['error', 'never'],
'react/prop-types': 'off',
'react/self-closing-comp': [
'error',
{
component: true,
html: true
}
],
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_'
}
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'no-console': [
'error',
{
allow: ['warn', 'error']
}
],
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/prefer-optional-chain': 'off',
'@typescript-eslint/no-var-requires': 'off'
}
'prefer-arrow-callback': [
'error',
{
allowNamedFunctions: true
}
],
'arrow-body-style': ['error', 'as-needed']
},
{
files: 'src/**/*.{js,jsx,ts,tsx}',
rules: {
'lodash/import-scope': ['error', 'method']
}
}
]
overrides: [
{
files: '**/*.{ts,tsx}',
extends: [
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked'
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.eslint.json'
},
plugins: ['@typescript-eslint', 'react-hooks'],
rules: {
'@typescript-eslint/no-misused-promises': [
'error',
{
checksVoidReturn: false
}
],
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_'
}
],
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/prefer-optional-chain': 'off',
'@typescript-eslint/no-var-requires': 'off'
}
},
{
files: 'src/**/*.{js,jsx,ts,tsx}',
rules: {
'lodash/import-scope': ['error', 'method']
}
}
]
}

module.exports = config
Loading
Loading