alexanderweiss / nova-prettier

Prettier extension for Nova
MIT License
35 stars 6 forks source link

Option to use the project `.prettierrc` #9

Closed idrakimuhamad closed 4 years ago

idrakimuhamad commented 4 years ago

It seems the nova’s prettier right now uses whatever default config that it came with instead of using the config from .prettierrc in project root and using local copy of prettier. Any plan to have this soon?

Thanks.

alexanderweiss commented 4 years ago

This extension uses Prettier's built-in config resolution. So it should work just like any other Prettier installation and pick up on your .prettierrc file. It does currently cache it though. So once you open a file it won't update the config for that file until you've relaunched Nova. That might be what you're running into? I'll look into improving that.