Comments (5)
Got it. I think it might be worth adding a line to the README that says to put this plugin last.
Otherwise, people might put it first and end up formatting everything with prettier (I did this).
from dprint-plugin-prettier.
The main thing is it allows you to have format with prettier via dprint's CLI, which may be useful if you're using other dprint plugins and want to run everything from a single CLI.
Beyond that, it should be faster because dprint's CLI will cause multiple file formats to run in parallel and if you're using the incremental feature (https://dprint.dev/config/#incremental) it will only format files that have changed.
from dprint-plugin-prettier.
Thanks for the response.
So to clarify, this plugin will mean that dprint will format most files, but prettier will format the files that dprint doesn't support (e.g: svelte)?
from dprint-plugin-prettier.
Not exactly. 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.
from dprint-plugin-prettier.
Done https://github.com/dprint/dprint-plugin-prettier#why-does-this-exist
from dprint-plugin-prettier.
Related Issues (20)
- Bug: Doesn't work "overrides" property for vue HOT 2
- Plugin URLs are throwing 404 errors
- Plugin: `prettier-plugin-tailwindcss` HOT 7
- Does dprint-plugin-prettier respect `.prettierrc.json`?
- 404 for plugin HOT 1
- Rewrite to run in Node.js and ability to specify any plugin HOT 1
- file extension specific configuration
- Plugin: prettier-stylelint
- Plugin: @ianvs/prettier-plugin-sort-imports
- New plugin system
- The upgrade path of dprint-plugin-prettier from 0.26.6 to 0.27.0 requires both dprint 0.39.1 and 0.40.0 HOT 3
- Add prettier/plugin-xml as a default plugin
- Document precedence in the README HOT 1
- Parse Error on Astro File HOT 2
- Unsupported CPU architecture: x86_64 (linux-musl) HOT 1
- Fatal JavaScript out of memory: Ineffective mark-compacts near heap limit
- Add mac aarch64 build HOT 2
- Add aarch64-unknown-linux-musl build
- prettier-plugin-svelte is not latest HOT 2
- dprint fails to add the plugin to cache on nixos HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dprint-plugin-prettier.