diff options
| author | James Maa <jmaa@berkeley.edu> | 2024-05-31 08:06:52 -0700 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-31 15:06:52 +0000 | 
| commit | 76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch) | |
| tree | bdba43d9ba704885383c7f308c6fe3f574c647c5 /ext/js/pages/settings/profile-controller.js | |
| parent | b3f54747eb2694bdc90bce72e5532e99d374ef08 (diff) | |
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule
* Fix dangling commas
Diffstat (limited to 'ext/js/pages/settings/profile-controller.js')
| -rw-r--r-- | ext/js/pages/settings/profile-controller.js | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/ext/js/pages/settings/profile-controller.js b/ext/js/pages/settings/profile-controller.js index 9d4ed33b..558b45be 100644 --- a/ext/js/pages/settings/profile-controller.js +++ b/ext/js/pages/settings/profile-controller.js @@ -168,7 +168,7 @@ export class ProfileController {          await this._settingsController.modifyGlobalSettings([{              action: 'set',              path: `profiles[${destinationProfileIndex}].options`, -            value: options +            value: options,          }]);          await this._settingsController.refresh(); @@ -199,7 +199,7 @@ export class ProfileController {              path: 'profiles',              start: index,              deleteCount: 0, -            items: [newProfile] +            items: [newProfile],          }]);          // Update profile index @@ -224,14 +224,14 @@ export class ProfileController {              path: 'profiles',              start: profileIndex,              deleteCount: 1, -            items: [] +            items: [],          }];          if (profileCurrentNew >= profileIndex) {              profileCurrentNew = Math.min(profileCurrentNew - 1, this._profiles.length - 1);              modifications.push({                  action: 'set',                  path: 'profileCurrent', -                value: profileCurrentNew +                value: profileCurrentNew,              });          } @@ -287,13 +287,13 @@ export class ProfileController {          const modifications = [{              action: 'swap',              path1: `profiles[${index1}]`, -            path2: `profiles[${index2}]` +            path2: `profiles[${index2}]`,          }];          if (profileCurrentNew !== profileCurrent) {              modifications.push({                  action: 'set',                  path: 'profileCurrent', -                value: profileCurrentNew +                value: profileCurrentNew,              });          } @@ -534,7 +534,7 @@ export class ProfileController {          return [              /** @type {HTMLSelectElement} */ (this._profileActiveSelect),              /** @type {HTMLSelectElement} */ (this._profileTargetSelect), -            /** @type {HTMLSelectElement} */ (this._profileCopySourceSelect) +            /** @type {HTMLSelectElement} */ (this._profileCopySourceSelect),          ];      } |