Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilb committed Jun 25, 2021
1 parent 13bc1a2 commit 4a491e6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ts/components/session/ActionsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ const doAppStartUp = () => {
debounce(triggerAvatarReUploadIfNeeded, 200);

// TODO: Investigate the case where we reconnect
getSwarmPollingInstance().start();
void getSwarmPollingInstance().start();
};

/**
Expand Down
2 changes: 1 addition & 1 deletion ts/data/data.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Electron from 'electron';

const { ipcRenderer } = Electron;
// tslint:disable: function-name no-require-imports no-var-requires one-variable-per-declaration no-void-expression
// tslint:disable: no-require-imports no-var-requires one-variable-per-declaration no-void-expression

import _ from 'lodash';
import { ConversationCollection, ConversationModel } from '../models/conversation';
Expand Down
1 change: 0 additions & 1 deletion ts/session/messages/MessageController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export class MessageController {
});
}

// tslint:disable-next-line: function-name
public get(identifier: string) {
return this.messageLookup.get(identifier);
}
Expand Down
1 change: 0 additions & 1 deletion ts/session/utils/AttachmentsDownload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export async function addJob(attachment: any, job: any = {}) {
};
}

// tslint:disable: function-name
async function _tick() {
await _maybeStartJob();
timeout = setTimeout(_tick, TICK_INTERVAL);
Expand Down
2 changes: 1 addition & 1 deletion ts/util/blockedNumberController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getItemById, createOrUpdateItem } from '../data/data';
import { createOrUpdateItem, getItemById } from '../data/data';
import { PubKey } from '../session/types';
import { UserUtils } from '../session/utils';

Expand Down
8 changes: 4 additions & 4 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@
"function-name": [
true,
{
"function-regex": "^[a-z][\\w\\d]+$",
"method-regex": "^[a-z][\\w\\d]+$",
"private-method-regex": "^[a-z][\\w\\d]+$",
"protected-method-regex": "^[a-z][\\w\\d]+$",
"function-regex": "^(TEST_)?(_)?[a-z][\\w\\d]+$",
"method-regex": "^(TEST_)?(_)?[a-z][\\w\\d]+$",
"private-method-regex": "^(TEST_)?(_)?[a-z][\\w\\d]+$",
"protected-method-regex": "^(TEST_)?(_)?[a-z][\\w\\d]+$",
"static-method-regex": "^[a-zA-Z][\\w\\d]+$"
}
],
Expand Down

0 comments on commit 4a491e6

Please sign in to comment.