diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-12-16 20:04:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-17 01:04:56 +0000 |
commit | b249627434d3a94420ac4d98c3ce720767e57b43 (patch) | |
tree | ec46e2c020c5a63a5c2babf56376f53e288ed7f2 /ext/js/app/popup-factory.js | |
parent | decbc60f7734e739c0e5c41da294f65f9eec92fe (diff) |
Update eslint spacing rules (#366)
* Add space-infix-ops rule
* Add no-multi-spaces
---------
Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
Diffstat (limited to 'ext/js/app/popup-factory.js')
-rw-r--r-- | ext/js/app/popup-factory.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/js/app/popup-factory.js b/ext/js/app/popup-factory.js index 6fa50796..41984841 100644 --- a/ext/js/app/popup-factory.js +++ b/ext/js/app/popup-factory.js @@ -47,6 +47,7 @@ export class PopupFactory { */ prepare() { this._frameOffsetForwarder.prepare(); + /* eslint-disable no-multi-spaces */ yomitan.crossFrame.registerHandlers([ ['PopupFactory.getOrCreatePopup', {async: true, handler: this._onApiGetOrCreatePopup.bind(this)}], ['PopupFactory.setOptionsContext', {async: true, handler: this._onApiSetOptionsContext.bind(this)}], @@ -64,6 +65,7 @@ export class PopupFactory { ['PopupFactory.getFrameSize', {async: true, handler: this._onApiGetFrameSize.bind(this)}], ['PopupFactory.setFrameSize', {async: true, handler: this._onApiSetFrameSize.bind(this)}] ]); + /* eslint-enable no-multi-spaces */ } /** @@ -72,12 +74,12 @@ export class PopupFactory { * @returns {Promise<import('popup').PopupAny>} */ async getOrCreatePopup({ - frameId=null, - id=null, - parentPopupId=null, - depth=null, - popupWindow=false, - childrenSupported=false + frameId = null, + id = null, + parentPopupId = null, + depth = null, + popupWindow = false, + childrenSupported = false }) { // Find by existing id if (id !== null) { |