Clean up your JavaScript imports with Prettier

Опубликовано: 05 Октябрь 2023
на канале: Jolly Coding
2,063
50

Leverage the power of Prettier to keep your code based organised. I'll show you this powerful plugin to neatly and automatically sort our imports to keep our code clean and readable.

Follow along on my blog: https://www.jamesshopland.com/blog/so...

Get Started with the Prettier Plugin:
Install and explore more about the Prettier plugin:
https://www.npmjs.com/package/@ianvs/...

Example Project:
The example project I used, "Taxonomy":
https://github.com/shadcn-ui/taxonomy

Configuration Example:
prettier.config.js example file here:
https://github.com/shadcn-ui/taxonomy...

Additional Resources:
For those using TypeScript, explore path configurations (can be done in jsconfig too!):
https://www.typescriptlang.org/tsconf...

-----
Twitter:   / jollyshopland  
Personal Site: https://jamesshopland.com
GitHub: https://github.com/jolbol1
JollyUI: https://jollycod.ing/ui
Where I Work: https://jollycod.ing/work