From 4162ef09c6f0806d9c639d057b277415fbf736c5 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Thu, 23 Nov 2023 09:58:29 +0100 Subject: [PATCH] chore: execute "tsc" on lint phase --- package.json | 1 + packages/autorotate-plugin/package.json | 2 +- packages/compass-plugin/package.json | 2 +- packages/compass-plugin/src/components/CompassComponent.ts | 2 +- packages/core/package.json | 2 +- packages/core/tsconfig.json | 2 +- packages/cubemap-adapter/package.json | 2 +- packages/cubemap-tiles-adapter/package.json | 2 +- packages/cubemap-video-adapter/package.json | 2 +- packages/equirectangular-tiles-adapter/package.json | 2 +- packages/equirectangular-video-adapter/package.json | 2 +- packages/gallery-plugin/package.json | 2 +- packages/gyroscope-plugin/package.json | 2 +- packages/little-planet-adapter/package.json | 2 +- packages/map-plugin/package.json | 2 +- packages/markers-plugin/package.json | 2 +- packages/overlays-plugin/package.json | 2 +- packages/resolution-plugin/package.json | 2 +- packages/settings-plugin/package.json | 2 +- packages/shared/package.json | 2 +- packages/shared/tsconfig.json | 2 +- packages/stereo-plugin/package.json | 2 +- packages/video-plugin/package.json | 2 +- packages/virtual-tour-plugin/package.json | 2 +- packages/visible-range-plugin/package.json | 2 +- yarn.lock | 5 +++++ 26 files changed, 30 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index 531d6212b..7b8d5b559 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "stylelint-config-standard-scss": "^11.1.0", "stylelint-stylistic": "^0.4.3", "ts-node": "^10.9.1", + "tsc": "^2.0.4", "tsup": "^7.3.0", "turbo": "^1.10.0", "typedoc": "^0.25.0", diff --git a/packages/autorotate-plugin/package.json b/packages/autorotate-plugin/package.json index 2b3fd0716..833617d4d 100644 --- a/packages/autorotate-plugin/package.json +++ b/packages/autorotate-plugin/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix", + "lint": "tsc --noEmit && eslint . --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/compass-plugin/package.json b/packages/compass-plugin/package.json index bd846eb1a..3c513a71f 100644 --- a/packages/compass-plugin/package.json +++ b/packages/compass-plugin/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix", + "lint": "tsc --noEmit && eslint . --fix && stylelint \"src/**/*.scss\" --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/compass-plugin/src/components/CompassComponent.ts b/packages/compass-plugin/src/components/CompassComponent.ts index 04fbbe74e..198647d75 100644 --- a/packages/compass-plugin/src/components/CompassComponent.ts +++ b/packages/compass-plugin/src/components/CompassComponent.ts @@ -93,7 +93,7 @@ export class CompassComponent extends AbstractComponent { this.container.className = `psv-compass psv-compass--${this.config.position.join('-')}`; if (this.config.className) { - utils.addClasses(this.container, this.config.className); + this.container.classList.add(this.config.className); } this.background.innerHTML = this.config.backgroundSvg; diff --git a/packages/core/package.json b/packages/core/package.json index d6eebb15a..7ceda8ceb 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix", + "lint": "tsc --noEmit && eslint . --fix && stylelint \"src/**/*.scss\" --fix", "test": "mocha -r ts-node/register \"src/**/*.spec.ts\"", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index ebd748fe4..b79900f9e 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -1,5 +1,5 @@ { "extends": "../../tsconfig.json", "include": ["src/**/*.ts", "../shared/typings.d.ts"], - "exclude": ["dist", "node_modules"] + "exclude": ["dist", "node_modules", "src/**/*.spec.ts"] } diff --git a/packages/cubemap-adapter/package.json b/packages/cubemap-adapter/package.json index ab839415c..69646cbca 100644 --- a/packages/cubemap-adapter/package.json +++ b/packages/cubemap-adapter/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix", + "lint": "tsc --noEmit && eslint . --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/cubemap-tiles-adapter/package.json b/packages/cubemap-tiles-adapter/package.json index 03df2e004..4abaedecb 100644 --- a/packages/cubemap-tiles-adapter/package.json +++ b/packages/cubemap-tiles-adapter/package.json @@ -13,7 +13,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix", + "lint": "tsc --noEmit && eslint . --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/cubemap-video-adapter/package.json b/packages/cubemap-video-adapter/package.json index cfffc8996..6d1c3e873 100644 --- a/packages/cubemap-video-adapter/package.json +++ b/packages/cubemap-video-adapter/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix", + "lint": "tsc --noEmit && eslint . --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/equirectangular-tiles-adapter/package.json b/packages/equirectangular-tiles-adapter/package.json index 48355bcd0..9b647be09 100644 --- a/packages/equirectangular-tiles-adapter/package.json +++ b/packages/equirectangular-tiles-adapter/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix", + "lint": "tsc --noEmit && eslint . --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/equirectangular-video-adapter/package.json b/packages/equirectangular-video-adapter/package.json index f18404435..46784fed4 100644 --- a/packages/equirectangular-video-adapter/package.json +++ b/packages/equirectangular-video-adapter/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix", + "lint": "tsc --noEmit && eslint . --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/gallery-plugin/package.json b/packages/gallery-plugin/package.json index 2472067c6..54893bd3e 100644 --- a/packages/gallery-plugin/package.json +++ b/packages/gallery-plugin/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix", + "lint": "tsc --noEmit && eslint . --fix && stylelint \"src/**/*.scss\" --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/gyroscope-plugin/package.json b/packages/gyroscope-plugin/package.json index 7c230586b..612b69dcb 100644 --- a/packages/gyroscope-plugin/package.json +++ b/packages/gyroscope-plugin/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix", + "lint": "tsc --noEmit && eslint . --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/little-planet-adapter/package.json b/packages/little-planet-adapter/package.json index 3717cf249..d542e8ddc 100644 --- a/packages/little-planet-adapter/package.json +++ b/packages/little-planet-adapter/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix", + "lint": "tsc --noEmit && eslint . --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/map-plugin/package.json b/packages/map-plugin/package.json index e5d2b5ab0..46930a59c 100644 --- a/packages/map-plugin/package.json +++ b/packages/map-plugin/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix", + "lint": "tsc --noEmit && eslint . --fix && stylelint \"src/**/*.scss\" --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/markers-plugin/package.json b/packages/markers-plugin/package.json index 7a80a050d..307591a49 100644 --- a/packages/markers-plugin/package.json +++ b/packages/markers-plugin/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix", + "lint": "tsc --noEmit && eslint . --fix && stylelint \"src/**/*.scss\" --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/overlays-plugin/package.json b/packages/overlays-plugin/package.json index d21f39daf..f449f06d9 100644 --- a/packages/overlays-plugin/package.json +++ b/packages/overlays-plugin/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix", + "lint": "tsc --noEmit && eslint . --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/resolution-plugin/package.json b/packages/resolution-plugin/package.json index 21459a8fa..c7ea6fd95 100644 --- a/packages/resolution-plugin/package.json +++ b/packages/resolution-plugin/package.json @@ -13,7 +13,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix", + "lint": "tsc --noEmit && eslint . --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/settings-plugin/package.json b/packages/settings-plugin/package.json index 32f1d56cb..43289e081 100644 --- a/packages/settings-plugin/package.json +++ b/packages/settings-plugin/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix", + "lint": "tsc --noEmit && eslint . --fix && stylelint \"src/**/*.scss\" --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/shared/package.json b/packages/shared/package.json index 4f234be39..df7a05fb1 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -9,7 +9,7 @@ }, "scripts": { "build:test": "tsup --define.dts=off", - "lint": "eslint . --fix && stylelint \"*.scss\" --fix", + "lint": "tsc --noEmit && eslint . --fix && stylelint \"*.scss\" --fix", "test": "mocha -r ts-node/register \"*.spec.ts\"" }, "psv": { diff --git a/packages/shared/tsconfig.json b/packages/shared/tsconfig.json index 60cd722d8..6d8ab3d75 100644 --- a/packages/shared/tsconfig.json +++ b/packages/shared/tsconfig.json @@ -1,5 +1,5 @@ { "extends": "../../tsconfig.json", "include": ["*.ts"], - "exclude": ["dist", "node_modules"] + "exclude": ["dist", "node_modules", "**/*.spec.ts"] } diff --git a/packages/stereo-plugin/package.json b/packages/stereo-plugin/package.json index af717b488..628134437 100644 --- a/packages/stereo-plugin/package.json +++ b/packages/stereo-plugin/package.json @@ -13,7 +13,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix", + "lint": "tsc --noEmit && eslint . --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/video-plugin/package.json b/packages/video-plugin/package.json index 082408a2f..8cce91225 100644 --- a/packages/video-plugin/package.json +++ b/packages/video-plugin/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix", + "lint": "tsc --noEmit && eslint . --fix && stylelint \"src/**/*.scss\" --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/virtual-tour-plugin/package.json b/packages/virtual-tour-plugin/package.json index ca26ba9d6..35f9cdcb9 100644 --- a/packages/virtual-tour-plugin/package.json +++ b/packages/virtual-tour-plugin/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix", + "lint": "tsc --noEmit && eslint . --fix && stylelint \"src/**/*.scss\" --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/packages/visible-range-plugin/package.json b/packages/visible-range-plugin/package.json index a6e52d514..1bf1c74b0 100644 --- a/packages/visible-range-plugin/package.json +++ b/packages/visible-range-plugin/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "tsup", "watch": "tsup --watch", - "lint": "eslint . --fix", + "lint": "tsc --noEmit && eslint . --fix", "publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public", "npm-link": "cd dist && npm link" }, diff --git a/yarn.lock b/yarn.lock index cfee6d56e..e1f083729 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10290,6 +10290,11 @@ ts-node@^10.9.1: v8-compile-cache-lib "^3.0.1" yn "3.1.1" +tsc@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/tsc/-/tsc-2.0.4.tgz#5f6499146abea5dca4420b451fa4f2f9345238f5" + integrity sha512-fzoSieZI5KKJVBYGvwbVZs/J5za84f2lSTLPYf6AGiIf43tZ3GNrI1QzTLcjtyDDP4aLxd46RTZq1nQxe7+k5Q== + tslib@^1.10.0, tslib@^1.9.3: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"