.prettierignore not picked up when not in root folder
See original GitHub issueThe following folder structure works for the .prettierrc, but the .prettierignore does not apply. Do I need to move the prettier settings to the root of the project? Because this would mean a discrepancy between eslint & prettier. When placed in subfolders, .eslintignore works as expected.
Folder stucture:
- projectdir
- sub_project1
- .prittierrc
- .prittierignore
- sub_projec2
- ...
- sub_projec3
- ...
The .prettierrc file:
{
"singleQuote": true,
"trailingComma": "all"
}
The .prettierignore file:
# Ignore everything, just to test
**/*
*
**
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Ignoring Code - Prettier
Use .prettierignore to ignore (i.e. not reformat) certain files and folders completely. Use “prettier-ignore” comments to ignore parts of files.
Read more >.prettierignore not working | The AI Search Engine You Control
Ignore file in project root as expected by prettier. Both multi-root & non multi-root. Tried everything found in other issues. Open side panel....
Read more >How can I target a nested directory in .prettierignore?
After some more searching, I found this solution, ... #ignore all /* #but don't ignore files or directories at root called src !/src...
Read more >Prettier: support .prettierignore : WEB-32711 - YouTrack
json file or is in the root directory of the project (if there is no pacakge.json). This is because the console 'prettier' tool...
Read more >Prettier - Nova Extensions - Panic Inc.
Supports standard Prettier configuration, and .prettierignore files. ... Fixes project Prettier not getting found when using npm v7.0.0 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Here is the relevant Prettier issue: https://github.com/prettier/prettier/issues/4081
We would implement that if prettier implements it 😃