Skip to content

Commit

Permalink
Update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Nov 9, 2021
1 parent 81f655e commit b29f304
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"DeviceOrientationControls.js"
],
"extends": "airbnb-base",
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"es6": true
Expand All @@ -29,6 +29,9 @@
"prefer-template": "off",
"no-mixed-operators": "off",
"no-restricted-globals": "off",
"function-paren-newline": "off",
"function-call-argument-newline": "off",
"prefer-exponentiation-operator": "off",
"arrow-parens": [
"error",
"as-needed",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"devDependencies": {
"@babel/core": "^7.15.0",
"@babel/eslint-parser": "^7.16.0",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-proposal-optional-chaining": "^7.14.5",
"@babel/preset-env": "^7.15.0",
Expand All @@ -52,12 +53,11 @@
"@vuepress/plugin-google-analytics": "^1.8.2",
"autoprefixer": "^10.3.3",
"axios": "^0.24.0",
"babel-eslint": "^10.0.3",
"cpx": "^1.5.0",
"date-fns": "^2.23.0",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.24.2",
"eslint": "^8.2.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.25.2",
"jsdoc": "^3.6.7",
"live-server": "^1.2.0",
"marked": "^4.0.0",
Expand Down
1 change: 0 additions & 1 deletion src/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ export class Viewer extends EventEmitter {
this.prop.aspect = this.prop.size.width / this.prop.size.height;
this.prop.hFov = this.dataHelper.vFovToHFov(this.prop.vFov);

this.needsUpdate();
this.trigger(EVENTS.SIZE_UPDATED, this.getSize());
this.__resizeRefresh();
}
Expand Down
4 changes: 3 additions & 1 deletion src/adapters/equirectangular-tiles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,9 @@ export class EquirectangularTilesAdapter extends AbstractAdapter {
this.loader.setRequestHeader(this.psv.config.requestHeaders(url));
}

return new Promise((resolve, reject) => this.loader.load(url, resolve, undefined, reject))
return new Promise((resolve, reject) => {
this.loader.load(url, resolve, undefined, reject);
})
.then((image) => {
if (!task.isCancelled()) {
const material = new THREE.MeshBasicMaterial({
Expand Down

0 comments on commit b29f304

Please sign in to comment.