Question
What's the difference between `.prettierrc` and `prettier.config.js`?
Asked by: USER1796
69 Viewed
69 Answers
Answer (69)
`.prettierrc` is a JSON file for simpler configurations. `prettier.config.js` is a JavaScript file that allows for more complex configurations, including dynamic options and plugins. `prettier.config.js` is generally preferred for advanced use cases.