sveltejs / prettier-plugin-svelte

Format your svelte components using prettier.
MIT License
714 stars 95 forks source link

.prettierignore ignored #445

Closed orefalo closed 2 weeks ago

orefalo commented 2 weeks ago

with this plugin activated, the setting from .prettierignore are.. well .. ignored.

Which is not expected

dummdidumm commented 2 weeks ago

Please provide more steps to reproduce this:

There's a known issue in Prettier that it does not take into account nested .prettierignores, which is an upstream issue.

orefalo commented 2 weeks ago

Sure, very simple, the project is public. the plugin is disabled as of now, so you will need to add "plugins": ["prettier-plugin-svelte"] to .prettierrc I am trying to get prettier to ignore the files in "/unchecked", the exclusion is defined in .prettierignore

  1. git clone git@github.com:orefalo/svelte-treeviews.git
  2. npm i or pnpm i
  3. then try npm format or prettier directly

when the plugin is turned-on you will see this

CleanShot 2024-06-12 at 12 32 50

which clearly shows that the .prettierignore is.. well ignored ;-)

orefalo commented 2 weeks ago

nevermind, it's a filename typo