Ability to turn off prettier
See original GitHub issueAdd the ability to turn off prettier, specifically in generators. Currently, prettier is installed automatically with npm 7/8, which there is no way to completely turn it off.
Description
For teams that dislike prettier, it would be nice to be able to turn it completely off.
Motivation
Prettier can cause headaches in larger teams and unnecessary code changes to review.
Suggested Implementation
Take into account the .prettierignore for all prettier tasks.
Alternate Implementations
Either add a setting in nx.json, or change prettier to be optionalDependencies and checking if installed before using.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:16 (2 by maintainers)
Top Results From Across the Web
How to disable prettier in VSCode for a specific project?
Just create a .prettierignore file in the project with **. The entire codebase will be ignored for Prettier plugin.
Read more >Disabling languages for Prettier (in VScode) | Zell Liew
Enabling Prettier Globally but disabling it in specific languages ... We can enable Prettier globally with the editor.defaultFormatter property. " ...
Read more >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 >How to set up Prettier and automatic formatting on VS Code
You can do this on Windows by pressing both Ctrl and , . Click on the formatting section of the Text Editor tab...
Read more >disable prettier vscode - Code Examples & Solutions For This ...
If you want to disable Prettier on a particular language you can either create a .prettierignore file or you can use VS Code's...
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

Hi,
This is still an issue in NX version 13.8.0. With the prettier packages removed (prettier, eslint-config-prettier, eslint-plugin-prettier), eslint fails with the following error:
I had to remove prettier from the
extendsattribute of the default eslint configs in:This is an issue. We are not using prettier though the eslint-plugin-nx wants to extend the config of it. Please decouple the extension in the configs.