You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a follow up for #11. Even with the "why this plugin exists" section in the README, my working assumption (like the OP in #11) was:
dprint will format most files, but prettier will format the files that dprint doesn't support (e.g: svelte)
The note on precedence in the plugin docs is helpful, but I read it separated with time from when I was using this plugin and didn't immediately put two and two together.
Even if I'm not using plugins that overlap in functionality, it's insightful to just know the soup to nuts of how Dprint works. I think the quote in #11 captures that:
Dprint's CLI has no clue about how to format any kind of file. The plugins do that. So if you use the prettier plugin then it will format using prettier. If you use another plugin like dprint-plugin-typescript in addition to dprint-plugin-prettier, then you can get it formatting JavaScript and TypeScript code with dprint-plugin-typescript by putting the url for dprint-plugin-typescript before dprint-plugin-prettier's url in the plugins array of the configuration file.
I'd consider including a version of this quote not only in this plugin, but also in the main Dprint README.
The text was updated successfully, but these errors were encountered:
As a tangetially related question, then how does a plugin prettier-plugin-jsdoc operate on JS files (but the built-in JS prettier does not when preceeded by dprint-plugin-typescript)? Associations?
This is a follow up for #11. Even with the "why this plugin exists" section in the README, my working assumption (like the OP in #11) was:
The note on precedence in the plugin docs is helpful, but I read it separated with time from when I was using this plugin and didn't immediately put two and two together.
Even if I'm not using plugins that overlap in functionality, it's insightful to just know the soup to nuts of how Dprint works. I think the quote in #11 captures that:
I'd consider including a version of this quote not only in this plugin, but also in the main Dprint README.
The text was updated successfully, but these errors were encountered: