🔧 improving typechecker and lint local performance (#4710)

This commit is contained in:
Matiss Janis Aboltins
2025-04-06 14:47:49 +01:00
committed by GitHub
parent 26ee3179e1
commit c4b4108eca
20 changed files with 99 additions and 101 deletions

View File

@@ -39,6 +39,7 @@ HTTPS=true yarn start
```
or using the dev container:
```
HTTPS=true docker compose up --build
```
@@ -82,6 +83,7 @@ E2E_START_URL=https://ip:port yarn vrt
You can also run the tests against a remote server by passing the URL:
Run in standardized docker container:
```sh
E2E_START_URL=https://my-remote-server.com yarn vrt:docker
@@ -90,6 +92,7 @@ E2E_START_URL=https://my-remote-server.com yarn vrt:docker
```
Run locally:
```sh
E2E_START_URL=https://my-remote-server.com yarn vrt
```

View File

@@ -20,7 +20,7 @@ const processTranslations = () => {
console.log(`en.json has ${enKeysCount} keys.`);
files.forEach((file) => {
files.forEach(file => {
if (file === 'en.json' || path.extname(file) !== '.json') return;
if (file.startsWith('en-')) {
@@ -34,7 +34,9 @@ const processTranslations = () => {
// Calculate the percentage of keys present compared to en.json
const percentage = (fileKeysCount / enKeysCount) * 100;
console.log(`${file} has ${fileKeysCount} keys (${percentage.toFixed(2)}%).`);
console.log(
`${file} has ${fileKeysCount} keys (${percentage.toFixed(2)}%).`,
);
if (percentage < 50) {
fs.unlinkSync(filePath);

View File

@@ -1,4 +1,3 @@
// eslint-disable-next-line import/no-unresolved
import { type CSSObject } from '@emotion/css/dist/declarations/src/create-instance';
// Allow images to be imported

View File

@@ -3,4 +3,4 @@
);
@include variable.default;
@import "@fontsource/redacted-script";
@import '@fontsource/redacted-script';