Skip to content

Commit

Permalink
chore: dependencies (#896)
Browse files Browse the repository at this point in the history
* chore: node 22

* chore: lefthook

* chore: pnpm

* chore: libxmljs, node 22

* chore: devDependencies

* chore: simple deps

* chore: x-date-pickers

* chore: date-fns v3

* chore: downshift/lru-cache

* chore: vitest

* chore: most used

* chore: lefthook fix, biome instead of prettier/eslint

* fix: seperation/travelsWith

* feat: add destination of newly joined train

* feat: no entry/exit in simple

* fix: tooltip for betriebshalt

* fix: formatting

* fix: formatting & lefthook
  • Loading branch information
marudor authored Jul 29, 2024
1 parent 2a04699 commit 06bed47
Showing 402 changed files with 138,981 additions and 138,594 deletions.
8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

95 changes: 0 additions & 95 deletions .eslintrc.cjs

This file was deleted.

24 changes: 12 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -25,19 +25,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 21
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 21
node-version: 22
- name: install
run: |
corepack enable
pnpm i --frozen-lockfile
env:
CYPRESS_INSTALL_BINARY: 0
- name: jest
- name: unit test
run: |
pnpm test:jest
pnpm test:unit
- name: lint
run: |
pnpm lint
@@ -47,7 +47,7 @@ jobs:
ct:
runs-on: ubuntu-latest
container:
image: cypress/browsers:node-20.11.0-chrome-121.0.6167.184-1-ff-123.0-edge-121.0.2277.128-1
image: cypress/browsers:node-22.0.0-chrome-124.0.6367.60-1-ff-125.0.2-edge-124.0.2478.51-1
options: --user 1001
strategy:
matrix:
@@ -56,10 +56,10 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Use Node.js 21
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 21
node-version: 22
- name: Install Deps
run: |
corepack enable
@@ -82,7 +82,7 @@ jobs:
e2e:
runs-on: ubuntu-latest
container:
image: cypress/browsers:node-20.11.0-chrome-121.0.6167.184-1-ff-123.0-edge-121.0.2277.128-1
image: cypress/browsers:node-22.0.0-chrome-124.0.6367.60-1-ff-125.0.2-edge-124.0.2478.51-1
options: --user 1001
strategy:
matrix:
@@ -91,10 +91,10 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Use Node.js 21
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 21
node-version: 22
- name: Install Deps
run: |
corepack enable
@@ -126,10 +126,10 @@ jobs:
- e2e
steps:
- uses: actions/checkout@v4
- name: Use Node.js 21
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 21
node-version: 22
- name: finalize percy
run: |
corepack enable
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -62,7 +62,6 @@ cypress/videos/
cypress/screenshots/
junit.xml
cypress-coverage/
jest-coverage/

.yarn/*
!.yarn/cache
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
side-effects-cache = false
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
21
22
116 changes: 58 additions & 58 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"module": {
"type": "commonjs"
},
"env": {
"targets": {
"node": "21"
}
},
"sourceMaps": true,
"jsc": {
"externalHelpers": true,
"loose": true,
"experimental": {
"plugins": [
["@swc/plugin-emotion", {}],
[
"@swc/plugin-transform-imports",
{
"@mui/material": {
"transform": "@mui/material/{{member}}"
},
"@mui/icons-material": {
"transform": "@mui/icons-material/{{member}}"
}
}
],
["@swc/plugin-loadable-components", {}]
]
},
"parser": {
"syntax": "typescript",
"tsx": true,
"decorators": true,
"dynamicImport": true
},
"transform": {
"decoratorMetadata": true,
"react": {
"runtime": "automatic",
"importSource": "@emotion/react"
}
},
"baseUrl": ".",
"paths": {
"@/client/*": ["src/client/*"],
"@/external/*": ["src/external/*"],
"@/oebb/*": ["src/oebb/*"],
"@/server/*": ["src/server/*"],
"@/types/*": ["src/types/*"],
"@/fixtures/*": ["cypress/fixtures/*"],
"@mui/material/css": ["src/swcWorkarounds/css"],
"@mui/material/styled": ["src/swcWorkarounds/styled"],
"@mui/material/keyframes": ["src/swcWorkarounds/keyframes"],
"@mui/material/useColorScheme": ["src/swcWorkarounds/useColorScheme"],
"@mui/material/useTheme": ["src/swcWorkarounds/useTheme"]
}
}
"$schema": "https://json.schemastore.org/swcrc",
"module": {
"type": "commonjs"
},
"env": {
"targets": {
"node": "22"
}
},
"sourceMaps": true,
"jsc": {
"externalHelpers": true,
"loose": true,
"experimental": {
"plugins": [
["@swc/plugin-emotion", {}],
[
"@swc/plugin-transform-imports",
{
"@mui/material": {
"transform": "@mui/material/{{member}}"
},
"@mui/icons-material": {
"transform": "@mui/icons-material/{{member}}"
}
}
],
["@swc/plugin-loadable-components", {}]
]
},
"parser": {
"syntax": "typescript",
"tsx": true,
"decorators": true,
"dynamicImport": true
},
"transform": {
"decoratorMetadata": true,
"react": {
"runtime": "automatic",
"importSource": "@emotion/react"
}
},
"baseUrl": ".",
"paths": {
"@/client/*": ["src/client/*"],
"@/external/*": ["src/external/*"],
"@/oebb/*": ["src/oebb/*"],
"@/server/*": ["src/server/*"],
"@/types/*": ["src/types/*"],
"@/fixtures/*": ["cypress/fixtures/*"],
"@mui/material/css": ["src/swcWorkarounds/css"],
"@mui/material/styled": ["src/swcWorkarounds/styled"],
"@mui/material/keyframes": ["src/swcWorkarounds/keyframes"],
"@mui/material/useColorScheme": ["src/swcWorkarounds/useColorScheme"],
"@mui/material/useTheme": ["src/swcWorkarounds/useTheme"]
}
}
}
50 changes: 25 additions & 25 deletions @types/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
// eslint-disable-next-line import/no-extraneous-dependencies
import nock from 'nock';
import { FC, PropsWithChildren } from 'react';
import type { FC, PropsWithChildren } from 'react';

declare global {
declare namespace globalThis {
declare var IMPRINT: {
name: string;
street: string;
town: string;
};
declare var BASE_URL: string;
declare var RAW_BASE_URL: string;
declare namespace globalThis {
declare var IMPRINT: {
name: string;
street: string;
town: string;
};
declare var BASE_URL: string;
declare var RAW_BASE_URL: string;

// test only
declare var nock: nock.Scope;
}
// test only
declare var nock: nock.Scope;
}

interface Navigator {
standalone?: boolean;
}
type Falsy = false | 0 | '' | null | undefined | void;
interface Array<T> {
filter<S extends T>(
predicate: BooleanConstructor,
thisArg?: any,
): Exclude<S, Falsy>[];
}
type E<T extends const> = T[keyof T];
type FCC<Props = {}> = FC<PropsWithChildren<Props>>;
interface Navigator {
standalone?: boolean;
}
type Falsy = false | 0 | '' | null | undefined | void;
interface Array<T> {
filter<S extends T>(
predicate: BooleanConstructor,
thisArg?: any,
): Exclude<S, Falsy>[];
}
type E<T extends const> = T[keyof T];
// biome-ignore lint/complexity/noBannedTypes: <explanation>
type FCC<Props = {}> = FC<PropsWithChildren<Props>>;
}
2 changes: 1 addition & 1 deletion @types/google-polyline.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
declare module 'google-polyline' {
export function decode(encoded: string): [number, number][];
export function decode(encoded: string): [number, number][];
}
Loading

0 comments on commit 06bed47

Please sign in to comment.