refactor: Run lintfix (no-changelog) (#7537)

- Fix autofixable violations
- Remove unused directives
- Allow for PascalCased variables - needed for dynamically imported or
assigned classes, decorators, routers, etc.
This commit is contained in:
Iván Ovejero
2023-10-27 14:15:02 +02:00
committed by GitHub
parent 1c4ac02db5
commit 62c096710f
477 changed files with 706 additions and 1003 deletions

View File

@@ -51,10 +51,10 @@ export class I18nClass {
options?: { adjustToNumber?: number; interpolate?: { [key: string]: string } },
): string {
if (options?.adjustToNumber !== undefined) {
return this.i18n.tc(key, options.adjustToNumber, options && options.interpolate).toString();
return this.i18n.tc(key, options.adjustToNumber, options?.interpolate).toString();
}
return this.i18n.t(key, options && options.interpolate).toString();
return this.i18n.t(key, options?.interpolate).toString();
}
/**
@@ -164,7 +164,7 @@ export class I18nClass {
nodeText() {
const ndvStore = useNDVStore();
const activeNode = ndvStore.activeNode;
const nodeType = activeNode ? this.shortNodeType(activeNode.type as string) : ''; // unused in eventTriggerDescription
const nodeType = activeNode ? this.shortNodeType(activeNode.type) : ''; // unused in eventTriggerDescription
const initialKey = `n8n-nodes-base.nodes.${nodeType}.nodeView`;
const context = this;