Closed IanVS closed 1 year ago
This fixes a few issues with parser plugins.
It fixes https://github.com/IanVS/prettier-plugin-sort-imports/issues/78 by removing the jsx parser plugin when the file is named .ts (typescript requires the use of .tsx extension for jsx).
jsx
.ts
.tsx
It also applies similar logic for .vue files, ensuring that the correct parser plugins are used, with similar logic to the vue compiler itself.
This fixes a few issues with parser plugins.
It fixes https://github.com/IanVS/prettier-plugin-sort-imports/issues/78 by removing the
jsx
parser plugin when the file is named.ts
(typescript requires the use of.tsx
extension for jsx).It also applies similar logic for .vue files, ensuring that the correct parser plugins are used, with similar logic to the vue compiler itself.