Skip to content

Commit

Permalink
chore: execute "tsc" on lint phase
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Nov 23, 2023
1 parent 4b7dff6 commit 4162ef0
Show file tree
Hide file tree
Showing 26 changed files with 30 additions and 24 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/autorotate-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/compass-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/compass-plugin/src/components/CompassComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"]
}
2 changes: 1 addition & 1 deletion packages/cubemap-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cubemap-tiles-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cubemap-video-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/equirectangular-tiles-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/equirectangular-video-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/gallery-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/gyroscope-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/little-planet-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/map-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/markers-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/overlays-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/resolution-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/settings-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"include": ["*.ts"],
"exclude": ["dist", "node_modules"]
"exclude": ["dist", "node_modules", "**/*.spec.ts"]
}
2 changes: 1 addition & 1 deletion packages/stereo-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/video-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/virtual-tour-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/visible-range-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4162ef0

Please sign in to comment.