Skip to content

Commit

Permalink
Switch Prettier parser to babel-ts (ivov#123)
Browse files Browse the repository at this point in the history
* Switch Prettier parser to `babel-ts`

* Silence logging
  • Loading branch information
ivov authored Sep 8, 2022
1 parent 92b0309 commit 59525f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
1 change: 0 additions & 1 deletion lib/rules/node-param-options-type-unsorted-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 59525f2

Please sign in to comment.