chore(prettier): full repo linting and code reformatting once and for all (#3627)

This commit is contained in:
Alireza authored and GitHub committed 2023-09-01 16:19:39 -04:00
1 parent 01500a2d4c
commit 9045ddaedc
656 files changed
+21737 -20628

No files matched your search

@@ -8,7 +8,7 @@
export default function pausePlugin(Mousetrap) {
var _originalStopCallback = Mousetrap.prototype.stopCallback;
Mousetrap.prototype.stopCallback = function(e, element, combo) {
Mousetrap.prototype.stopCallback = function (e, element, combo) {
var self = this;
if (self.paused) {
@@ -18,12 +18,12 @@ export default function pausePlugin(Mousetrap) {
return _originalStopCallback.call(self, e, element, combo);
};
Mousetrap.prototype.pause = function() {
Mousetrap.prototype.pause = function () {
var self = this;
self.paused = true;
};
Mousetrap.prototype.unpause = function() {
Mousetrap.prototype.unpause = function () {
var self = this;
self.paused = false;
};
@@ -122,7 +122,7 @@ export default function recordPlugin(Mousetrap, options = { timeout: 100 }) {
*/
function _normalizeSequence(sequence) {
for (let i = 0; i < sequence.length; ++i) {
sequence[i].sort(function(x, y) {
sequence[i].sort(function (x, y) {
// modifier keys always come first, in alphabetical order
if (x.length > 1 && y.length === 1) {
return -1;
@@ -177,10 +177,10 @@ export default function recordPlugin(Mousetrap, options = { timeout: 100 }) {
* @param {Function} callback
* @returns void
*/
Mousetrap.prototype.record = function(callback) {
Mousetrap.prototype.record = function (callback) {
var self = this;
self.recording = true;
_recordedSequenceCallback = function() {
_recordedSequenceCallback = function () {
self.recording = false;
callback.apply(self, arguments);
};
@@ -192,7 +192,7 @@ export default function recordPlugin(Mousetrap, options = { timeout: 100 }) {
* @param {Function} callback
* @returns void
*/
Mousetrap.prototype.stopRecord = function() {
Mousetrap.prototype.stopRecord = function () {
var self = this;
self.recording = false;
};
@@ -203,11 +203,11 @@ export default function recordPlugin(Mousetrap, options = { timeout: 100 }) {
* @param {Function} callback
* @returns void
*/
Mousetrap.prototype.startRecording = function() {
Mousetrap.prototype.startRecording = function () {
var self = this;
self.recording = true;
};
Mousetrap.prototype.handleKey = function() {
Mousetrap.prototype.handleKey = function () {
var self = this;
_handleKey.apply(self, arguments);
};