Sign in
Log inSign up

VSCode & Prettier not working

Nino's photo
Nino
·Jul 30, 2019

I am trying to get prettier running in VSCode but it simply does not work. The problem is that I am using a TypeScript Monorepo which looks like this:

|--- api
    |--- package.json
    |--- tsconfig.json 
    |--- server.ts
|--- www
    |--- pages
         |--- index.tsx
    |--- package.json
    |--- tsconfig.json
|--- now.json
|--- package.json

My VSCode settings for prettier are set to default. The curious thing about the whole scenario is that in the folder www prettier is working as usual. But as soon I open api/server.ts prettier doesnt do anything.

Does somebody have a solution for this?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct