Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export class PgpBlockViewAttachmentsModule {
for (const i of attachments.keys()) {
const name = attachments[i].name ? Str.stripPgpOrGpgExtensionIfPresent(attachments[i].name) : 'noname';
const nameVisible = name.length > 100 ? name.slice(0, 100) + '…' : name;
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
const size = filesize(attachments[i].length);

const htmlContent = `<b>${Xss.escape(nameVisible)}</b>&nbsp;&nbsp;&nbsp;${size}<span class="progress"><span class="percent"></span></span>`;
Expand Down
2 changes: 0 additions & 2 deletions extension/js/common/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import { CatchHelper } from './platform/catch-helper.js';
export class Settings {
public static evalPasswordStrength(passphrase: string, type: 'passphrase' | 'pwd' = 'passphrase') {
// all package will be available under zxcvbnts
/* eslint-disable @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-argument */
const options = {
translations: zxcvbnts['language-en'].translations,
graphs: zxcvbnts['language-common'].adjacencyGraphs,
Expand All @@ -48,7 +47,6 @@ export class Settings {
zxcvbnts.core.zxcvbnOptions.setOptions(options);
const guesses = zxcvbnts.core.zxcvbn(passphrase).guesses;
return PgpPwd.estimateStrength(guesses, type);
/* eslint-enable */
}

public static async renderSubPage(
Expand Down
2 changes: 1 addition & 1 deletion extension/js/service_worker/bg-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class BgHandlers {
if (typeof chrome.runtime.setUninstallURL !== 'undefined') {
const email = acctEmails?.length ? acctEmails[0] : undefined;

chrome.runtime.setUninstallURL(`https://flowcrypt.com/leaving.htm#${JSON.stringify({ email, metrics: null })}`); // eslint-disable-line no-null/no-null
void chrome.runtime.setUninstallURL(`https://flowcrypt.com/leaving.htm#${JSON.stringify({ email, metrics: null })}`); // eslint-disable-line no-null/no-null
}
};

Expand Down
Loading
Loading