question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.prettierignore pattern to ignore an entire folder

See original GitHub issue

I have some folders I want to disable prettier completely, and let it run on other folders with formatOnSave. tried to add .prettierignore with **/* and **/ with no effect - prettier still formats the code. What can I do to make this work?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
tomerazcommented, Jan 18, 2018

For me it doesn’t, only works if I open a workspace. Maybe it’s a bug. Using Ubuntu 16.04, vscode 1.19.1

2reactions
CiGitcommented, Dec 20, 2017

What do you mean by folder ? You can disable the extension for certain workspace. Try with **

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to disable prettier formatting for individual files or folders
create your .prettierignore file in the folder you want prettier to ignore the files inside of · inside the file, simply type *...
Read more >
Disable prettier for a single file - javascript - Stack Overflow
Ignoring Files or Folders ... To exclude files from formatting, add entries to a .prettierignore file in the project root or set the...
Read more >
prettier ignore folders | The search engine you control.
To exclude files from formatting, create a .prettierignore file in the root ... Given a directory structure like: ... pattern to ignore an...
Read more >
CLI · Prettier 中文网
Use a .prettierignore file to ignore things that should not be formatted. ... Prettier CLI will ignore files located in node_modules directory.
Read more >
Ignoring Code - ESLint - Pluggable JavaScript Linter
ignorePatterns in Config Files · Glob patterns in ignorePatterns are relative to the directory that the config file is placed in. · You...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found