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

Dev/update ts 5.7.3 #1792

Merged
merged 31 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0b8a744
updated eslint#
ARADDCC002 Jan 20, 2025
42fd363
updated eslint config
ARADDCC002 Jan 20, 2025
9355a6e
updated package lock
ARADDCC002 Jan 20, 2025
a55b0a7
package lock updates
ARADDCC002 Jan 22, 2025
28bd8da
more package lock changes£
ARADDCC002 Jan 22, 2025
ccf9c85
added whitespace to test workflow
ARADDCC002 Jan 22, 2025
79f03b1
merged main fixed conflicts
ARADDCC002 Jan 24, 2025
af587c4
wip for ts update
ARADDCC002 Jan 27, 2025
5523052
Merge branch 'main' into dev/update-ts-5.7.3
ARADDCC002 Jan 28, 2025
65b063f
updated import of lodesh-es
ARADDCC002 Jan 28, 2025
02b2d25
updated eslint for frontend ad backend
ARADDCC002 Jan 28, 2025
090894a
added missing eslint config for backend
ARADDCC002 Jan 28, 2025
754e36e
updated frontend dockerfile
ARADDCC002 Jan 28, 2025
300654c
updated frontend dockerfile
ARADDCC002 Jan 28, 2025
bca235e
updated cypress to v14
ARADDCC002 Jan 28, 2025
1389b83
updated cypress to v14
ARADDCC002 Jan 28, 2025
32ad97e
migrated to use new linting config for frontend
ARADDCC002 Jan 28, 2025
e655bb1
updated frontend dockerfile to specifiy version of sharp#
ARADDCC002 Jan 29, 2025
b9bf804
updated standalone dockerfile for optional sharp dependency
ARADDCC002 Jan 29, 2025
1555d82
merged main and fixed conflicts
ARADDCC002 Feb 3, 2025
46cae82
merged main fixed confclits
ARADDCC002 Feb 4, 2025
5076b40
added missing package lock files
ARADDCC002 Feb 4, 2025
7dec186
trigger workflow
ARADDCC002 Feb 4, 2025
149d4cc
updated package lock for frontend
ARADDCC002 Feb 4, 2025
1268c78
merged main
ARADDCC002 Feb 4, 2025
45d1447
updated package lock, removed unneeded rules, fixed new linting issues
ARADDCC002 Feb 6, 2025
d4b82e6
updated cypress eslint config
ARADDCC002 Feb 6, 2025
b0fe9db
fixed linting issues
ARADDCC002 Feb 11, 2025
ae274bd
updated broken unit test
ARADDCC002 Feb 11, 2025
de60b6c
updated cypress eslint config file to new format#
ARADDCC002 Feb 11, 2025
bb0959f
Moved cypress eslint config into frontend eslint config
ARADDCC012 Feb 11, 2025
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
1 change: 1 addition & 0 deletions Dockerfile.standalone
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ WORKDIR /app
COPY frontend/package*.json ./
RUN --mount=type=cache,target=/cache/npm npm ci --cache=/cache/npm
COPY frontend .
RUN npm install [email protected]
ENV NEXT_TELEMETRY_DISABLED=1
RUN npm run build

Expand Down
2 changes: 0 additions & 2 deletions backend/.eslintignore

This file was deleted.

21 changes: 0 additions & 21 deletions backend/.eslintrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions backend/config/default.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-require-imports */

/** @type {import('../src/utils/config.js').Config} */
module.exports = {
api: {
Expand Down
64 changes: 64 additions & 0 deletions backend/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import path from 'node:path'
import { fileURLToPath } from 'node:url'

import { FlatCompat } from '@eslint/eslintrc'
import js from '@eslint/js'
import typescriptEslint from '@typescript-eslint/eslint-plugin'
import tsParser from '@typescript-eslint/parser'
import prettier from 'eslint-plugin-prettier'
import simpleImportSort from 'eslint-plugin-simple-import-sort'
import globals from 'globals'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

const eslintConfig = [
{
ignores: ['**/node_modules', '**/dist'],
},
...compat.extends(
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
),
{
plugins: {
'@typescript-eslint': typescriptEslint,
prettier,
'simple-import-sort': simpleImportSort,
},

languageOptions: {
globals: {
...globals.node,
},

parser: tsParser,
},

rules: {
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],

'no-unused-vars': 'off',
'@typescript-eslint/no-extra-semi': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'simple-import-sort/imports': 'warn',
'simple-import-sort/exports': 'warn',
'no-console': 'warn',
},
},
]

export default eslintConfig
2 changes: 1 addition & 1 deletion backend/lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default {
'*.ts': ['eslint --ext .ts --max-warnings=0', 'prettier --check'],
'*.ts': ["eslint . -c eslint.config.mjs '**/*.ts' --max-warnings=0", 'prettier --check'],
}
Loading
Loading