idahogurl / vs-code-prettier-eslint

A Visual Studio Code Extension to format JavaScript and TypeScript code using the prettier-eslint package.
MIT License
190 stars 47 forks source link

How to do the prettier last as in the cli ? #140

Closed MatthD closed 1 year ago

MatthD commented 1 year ago

How is it possible with the vscode extension to do the same as https://github.com/prettier/prettier-eslint#prettierlast-boolean with the cli?

Id does not product the same result with this option

idahogurl commented 1 year ago

@MatthD The option is not available as I have not had anyone request the feature as of yet. Feel free to create a PR if you can. I've been thinking about adding Format on Paste and Format on Type support so I may add this. Check out this commit https://github.com/idahogurl/vs-code-prettier-eslint/commit/845b78d61e3ff19edde3734e849d2341e7453661#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519 and you'll see how to add configuration options.

issue-to-branch[bot] commented 1 year ago

Click here to create a branch for this issue

issue-to-branch[bot] commented 1 year ago

Branch 140-how-to-do-the-prettier created for this issue. Run command below in your terminal to checkout branch.
git fetch && git checkout 140-how-to-do-the-prettier