Merged in feature/tsgo (pull request #3069)

Use tsgo for typechecking

* switch to tsgo for type-checking

* Merged in chore/remove-cypress (pull request #3066)

chore: remove unused dependencies

* chore: remove cypress

* remove unused deps

* update yarn.lock after removing unused deps


Approved-by: Anton Gunnarsson

* use tsgo for typechecking

* use tsgo for type-checking

* yarn install

* fix(BOOK-496): Slowed down the MarqueeText component animation

Approved-by: Matilda Landström

* switch to tsgo for type-checking

* use tsgo for typechecking

* use tsgo for type-checking

* yarn install

* Merge branch 'feature/tsgo' of bitbucket.org:scandic-swap/web into feature/tsgo

* switch to use yarn check-types in lint-staged

* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/tsgo


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-11-06 12:34:23 +00:00
parent 873174dcc3
commit ec511e2c8b
17 changed files with 105 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
const config = {
"*.{ts,tsx}": [
() => "yarn lint",
() => "tsc -p tsconfig.json --noEmit",
() => "yarn check-types",
"prettier --write",
],
"*.{js,cjs,mjs}": "prettier --write",

View File

@@ -4,9 +4,9 @@
"main": "index.ts",
"type": "module",
"scripts": {
"check-types": "tsc --noEmit",
"lint": "eslint . --max-warnings 0 && tsc --noEmit",
"lint:fix": "eslint . --fix && tsc --noEmit",
"check-types": "tsgo --noEmit",
"lint": "eslint . --max-warnings 0 && tsgo --noEmit",
"lint:fix": "eslint . --fix && tsgo --noEmit",
"test": "vitest run --passWithNoTests",
"test:watch": "vitest",
"format": "prettier --write ."

View File

@@ -1,7 +1,7 @@
const config = {
"*.{ts,tsx}": [
() => "yarn lint",
() => "tsc -p tsconfig.json --noEmit",
() => "yarn type-check",
"prettier --write",
],
"*.{json,md}": "prettier --write",

View File

@@ -7,8 +7,8 @@
"scripts": {
"test": "vitest run",
"test:watch": "vitest",
"check-types": "tsc --noEmit",
"lint": "eslint . --max-warnings 0 && tsc --noEmit",
"check-types": "tsgo --noEmit",
"lint": "eslint . --max-warnings 0 && tsgo --noEmit",
"format": "prettier --write ."
},
"exports": {

View File

@@ -1,7 +1,7 @@
const config = {
'*.{ts,tsx}': [
() => 'yarn lint',
() => 'tsc -p tsconfig.json --noEmit',
() => 'yarn check-types',
'prettier --write',
],
'*.{json,md}': 'prettier --write',

View File

@@ -212,7 +212,7 @@
"test:watch": "vitest",
"prepack": "yarn run build",
"prepare": "husky && yarn run build",
"check-types": "tsc --noEmit",
"check-types": "tsgo --noEmit",
"test:browser": "vitest --config=vitest.browser.config.ts",
"include:shared": "jiti ../../scripts/copyFiles.ts ../../shared public/_static/shared"
},

View File

@@ -3,7 +3,6 @@
"compilerOptions": {
"allowImportingTsExtensions": true,
"noEmit": true,
"baseUrl": ".",
"paths": {}
},
"include": ["example", "lib"],

View File

@@ -1,7 +1,7 @@
const config = {
"*.{ts,tsx}": [
() => "yarn lint",
() => "tsc -p tsconfig.json --noEmit",
() => "yarn check-types",
"prettier --write",
],
"*.{json,md}": "prettier --write",

View File

@@ -7,8 +7,8 @@
"scripts": {
"test": "vitest run",
"test:watch": "vitest",
"check-types": "tsc --noEmit",
"lint": "eslint . --max-warnings 0 && tsc --noEmit",
"check-types": "tsgo --noEmit",
"lint": "eslint . --max-warnings 0 && tsgo --noEmit",
"format": "prettier --write ."
},
"exports": {

View File

@@ -1,7 +1,7 @@
const config = {
"*.{ts,tsx}": [
() => "yarn lint",
() => "tsc -p tsconfig.json --noEmit",
() => "yarn check-types",
"prettier --write",
],
"*.{js,cjs,mjs}": "prettier --write",

View File

@@ -4,9 +4,9 @@
"main": "index.ts",
"type": "module",
"scripts": {
"check-types": "tsc --noEmit",
"lint": "eslint . --max-warnings 0 && tsc --noEmit",
"lint:fix": "eslint . --fix && tsc --noEmit",
"check-types": "tsgo --noEmit",
"lint": "eslint . --max-warnings 0 && tsgo --noEmit",
"lint:fix": "eslint . --fix && tsgo --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"format": "prettier --write ."