Closed matt-oakes closed 5 years ago
This is not needed as Prettier picks the correct parser based on the file type (defaulting to flow for js, typescript for ts and tsx etc.). Hard coding it like this causes subtle issues with repos with mixed or purely Typescript code like this:
flow
js
typescript
ts
tsx
https://github.com/typescript-eslint/typescript-eslint/issues/481
Removing this does not affect users of Flow as it will be the default for JS files.
This is not needed as Prettier picks the correct parser based on the file type (defaulting to
flow
forjs
,typescript
forts
andtsx
etc.). Hard coding it like this causes subtle issues with repos with mixed or purely Typescript code like this:https://github.com/typescript-eslint/typescript-eslint/issues/481
Removing this does not affect users of Flow as it will be the default for JS files.