Exclude Files

The best way to not auto-format particular files, directories, or parts of files is via Prettier’s various options for this. This excludes files for both Prettifier and Prettier running locally on your machine.

Prettier ignores node_modules folders by default, no need to specify them here.

To exclude files only from Prettifier but not Prettier, add an excludeFiles key with the glob expressions similar to .gitignore files to the .github/prettifier.yml file. Here is an example:

excludeFiles:
  - confidential/