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:
@@ -13,7 +13,7 @@ const buildEslintCommand = (filenames) => {
|
||||
|
||||
const config = {
|
||||
"*.{js,jsx,ts,tsx}": [buildEslintCommand],
|
||||
"*.{ts,tsx}": () => "tsc -p tsconfig.json --noEmit",
|
||||
"*.{ts,tsx}": () => "yarn check-types",
|
||||
"*.{js,jsx,ts,tsx,json,css}": "prettier --write",
|
||||
"i18n/dictionaries/*.json": "jsonsort",
|
||||
}
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
"dev": "NODE_OPTIONS=--openssl-legacy-provider PORT=3001 NEXT_PUBLIC_PORT=3001 next dev",
|
||||
"build": "next build",
|
||||
"start": "node .next/standalone/server.js",
|
||||
"lint": "next lint --max-warnings 0 && tsc --noEmit",
|
||||
"lint:fix": "next lint --fix && tsc --noEmit",
|
||||
"check-types": "tsc --noEmit",
|
||||
"lint": "next lint --max-warnings 0 && tsgo --noEmit",
|
||||
"lint:fix": "next lint --fix && tsgo --noEmit",
|
||||
"check-types": "tsgo --noEmit",
|
||||
"clean": "rm -rf .next",
|
||||
"test": "vitest run --passWithNoTests",
|
||||
"test:watch": "vitest",
|
||||
|
||||
@@ -13,7 +13,7 @@ const buildEslintCommand = (filenames) => {
|
||||
|
||||
const config = {
|
||||
"*.{js,jsx,ts,tsx}": [buildEslintCommand],
|
||||
"*.{ts,tsx}": () => "tsc -p tsconfig.json --noEmit",
|
||||
"*.{ts,tsx}": () => "yarn check-types",
|
||||
"*.{js,jsx,ts,tsx,json,css}": "prettier --write",
|
||||
"i18n/dictionaries/*.json": "jsonsort",
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"test:watch": "vitest",
|
||||
"ci:build": "yarn lint && yarn test && yarn build",
|
||||
"clean": "rm -rf .next",
|
||||
"check-types": "tsc --noEmit",
|
||||
"check-types": "tsgo --noEmit",
|
||||
"include:shared": "jiti ../../scripts/copyFiles.ts ../../shared public/_static/shared",
|
||||
"format": "prettier --write ."
|
||||
},
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
"@formatjs/cli": "^6.7.1",
|
||||
"@types/react": "19.1.0",
|
||||
"@types/react-dom": "19.1.0",
|
||||
"@typescript/native-preview": "^7.0.0-dev.20251104.1",
|
||||
"@yarnpkg/types": "^4.0.1",
|
||||
"commander": "^14.0.0",
|
||||
"husky": "^9.1.7",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 ."
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const config = {
|
||||
"*.{ts,tsx}": [
|
||||
() => "yarn lint",
|
||||
() => "tsc -p tsconfig.json --noEmit",
|
||||
() => "yarn type-check",
|
||||
"prettier --write",
|
||||
],
|
||||
"*.{json,md}": "prettier --write",
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const config = {
|
||||
'*.{ts,tsx}': [
|
||||
() => 'yarn lint',
|
||||
() => 'tsc -p tsconfig.json --noEmit',
|
||||
() => 'yarn check-types',
|
||||
'prettier --write',
|
||||
],
|
||||
'*.{json,md}': 'prettier --write',
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"allowImportingTsExtensions": true,
|
||||
"noEmit": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {}
|
||||
},
|
||||
"include": ["example", "lib"],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const config = {
|
||||
"*.{ts,tsx}": [
|
||||
() => "yarn lint",
|
||||
() => "tsc -p tsconfig.json --noEmit",
|
||||
() => "yarn check-types",
|
||||
"prettier --write",
|
||||
],
|
||||
"*.{json,md}": "prettier --write",
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 ."
|
||||
|
||||
82
yarn.lock
82
yarn.lock
@@ -6818,6 +6818,87 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20251104.1":
|
||||
version: 7.0.0-dev.20251104.1
|
||||
resolution: "@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20251104.1"
|
||||
conditions: os=darwin & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20251104.1":
|
||||
version: 7.0.0-dev.20251104.1
|
||||
resolution: "@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20251104.1"
|
||||
conditions: os=darwin & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20251104.1":
|
||||
version: 7.0.0-dev.20251104.1
|
||||
resolution: "@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20251104.1"
|
||||
conditions: os=linux & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript/native-preview-linux-arm@npm:7.0.0-dev.20251104.1":
|
||||
version: 7.0.0-dev.20251104.1
|
||||
resolution: "@typescript/native-preview-linux-arm@npm:7.0.0-dev.20251104.1"
|
||||
conditions: os=linux & cpu=arm
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript/native-preview-linux-x64@npm:7.0.0-dev.20251104.1":
|
||||
version: 7.0.0-dev.20251104.1
|
||||
resolution: "@typescript/native-preview-linux-x64@npm:7.0.0-dev.20251104.1"
|
||||
conditions: os=linux & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20251104.1":
|
||||
version: 7.0.0-dev.20251104.1
|
||||
resolution: "@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20251104.1"
|
||||
conditions: os=win32 & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript/native-preview-win32-x64@npm:7.0.0-dev.20251104.1":
|
||||
version: 7.0.0-dev.20251104.1
|
||||
resolution: "@typescript/native-preview-win32-x64@npm:7.0.0-dev.20251104.1"
|
||||
conditions: os=win32 & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript/native-preview@npm:^7.0.0-dev.20251104.1":
|
||||
version: 7.0.0-dev.20251104.1
|
||||
resolution: "@typescript/native-preview@npm:7.0.0-dev.20251104.1"
|
||||
dependencies:
|
||||
"@typescript/native-preview-darwin-arm64": "npm:7.0.0-dev.20251104.1"
|
||||
"@typescript/native-preview-darwin-x64": "npm:7.0.0-dev.20251104.1"
|
||||
"@typescript/native-preview-linux-arm": "npm:7.0.0-dev.20251104.1"
|
||||
"@typescript/native-preview-linux-arm64": "npm:7.0.0-dev.20251104.1"
|
||||
"@typescript/native-preview-linux-x64": "npm:7.0.0-dev.20251104.1"
|
||||
"@typescript/native-preview-win32-arm64": "npm:7.0.0-dev.20251104.1"
|
||||
"@typescript/native-preview-win32-x64": "npm:7.0.0-dev.20251104.1"
|
||||
dependenciesMeta:
|
||||
"@typescript/native-preview-darwin-arm64":
|
||||
optional: true
|
||||
"@typescript/native-preview-darwin-x64":
|
||||
optional: true
|
||||
"@typescript/native-preview-linux-arm":
|
||||
optional: true
|
||||
"@typescript/native-preview-linux-arm64":
|
||||
optional: true
|
||||
"@typescript/native-preview-linux-x64":
|
||||
optional: true
|
||||
"@typescript/native-preview-win32-arm64":
|
||||
optional: true
|
||||
"@typescript/native-preview-win32-x64":
|
||||
optional: true
|
||||
bin:
|
||||
tsgo: bin/tsgo.js
|
||||
checksum: 10c0/dce6ab5c1d265bc9a56a6a571a92222b63b43ae809bc240ebac4e838588891419f281ff81dce43d55bd52aa786f2a9fc1753fb7b071e2b272210ab05ebffe455
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@unhead/schema@npm:^1.11.11, @unhead/schema@npm:^1.9.5":
|
||||
version: 1.11.20
|
||||
resolution: "@unhead/schema@npm:1.11.20"
|
||||
@@ -13752,6 +13833,7 @@ __metadata:
|
||||
"@formatjs/cli": "npm:^6.7.1"
|
||||
"@types/react": "npm:19.1.0"
|
||||
"@types/react-dom": "npm:19.1.0"
|
||||
"@typescript/native-preview": "npm:^7.0.0-dev.20251104.1"
|
||||
"@yarnpkg/types": "npm:^4.0.1"
|
||||
commander: "npm:^14.0.0"
|
||||
husky: "npm:^9.1.7"
|
||||
|
||||
Reference in New Issue
Block a user