Search code examples
prettier

Configure Prettier so that it does not format JSX parts of JS file?


I would like to avoid Prettier formatting the JSX parts of my typescript files. Is this possible?


Solution

  • The only way to achieve that is to add the // prettier-ignore, there are no options to disable it and there are no plans to add this support.