Closed valtyr closed 9 months ago
Just realized that you already expose the plugins as a config variable. Solved by updating my prettier config to include this:
"importOrderParserPlugins": [
"typescript",
"jsx",
"explicitResourceManagement"
],
Your Environment
Describe the bug
The plugin does not support the explicit resource management
using
keyword in TypeScript.https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html#using-declarations-and-explicit-resource-management
To Reproduce
Expected behavior
I expected the plugin to support this syntax. It seems like the version of Babel that the plugin uses does not, without enabling a specific configuration flag.
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
Error log
Contribute to @trivago/prettier-plugin-sort-imports