From 59525f29be0590710c701499e93db940007b9ec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= <ivov.src@gmail.com> Date: Thu, 8 Sep 2022 17:32:59 +0200 Subject: [PATCH] Switch Prettier parser to `babel-ts` (#123) * Switch Prettier parser to `babel-ts` * Silence logging --- lib/constants.ts | 2 +- lib/rules/node-param-options-type-unsorted-items.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/constants.ts b/lib/constants.ts index 7ba1905..f4a3ff8 100644 --- a/lib/constants.ts +++ b/lib/constants.ts @@ -215,5 +215,5 @@ export const CREDS_EXEMPTED_FROM_API_SUFFIX = [ endOfLine: 'lf', printWidth: 100, - parser: 'babel' // to silence warning, not part of n8n's config + parser: 'babel-ts' // to silence warning, not part of n8n's config } as const; \ No newline at end of file diff --git a/lib/rules/node-param-options-type-unsorted-items.ts b/lib/rules/node-param-options-type-unsorted-items.ts index b3832f9..d6be097 100644 --- a/lib/rules/node-param-options-type-unsorted-items.ts +++ b/lib/rules/node-param-options-type-unsorted-items.ts @@ -81,7 +81,6 @@ export function toOptions(optionsSource: string): Array<{ name: string }> | null try { return eval(`(${optionsSource})`); } catch (error) { - console.error("Failed to eval options source", optionsSource, error); return null; } }