Support // prettier-ignore
See original GitHub issueIs it possible to support // prettier-ignore comment? So marked import won’t be reordered, e.g.
// prettier-ignore
import './polyfills';
import foo from 'foo'
Issue Analytics
- State:
- Created 3 years ago
- Reactions:31
- Comments:13
Top Results From Across the Web
Prettier: support .prettierignore : WEB-32711 - YouTrack
prettierignore file will only be considered if it's in the same directory as the package.json file or is in the root directory of...
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 >Support .prettierignore · Issue #131 · sveltejs/prettier-plugin-svelte ...
Turns out this is actually a problem with the VSCode extension not taking into account .prettierignore . All reactions.
Read more >how to disable prettier formatting for individual files or folders
To disable prettier formatting on a single file, open the .prettierignore file and ... so don't forget to connect with me on social...
Read more >prettier ignore all files | The AI Search Engine You Control
prettierignore file, --ignore-path CLI option, /* prettier-ignore */ comments and so on help wanted We're a small group who can't get to every...
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

@ayusharma How about support for
prettier-ignore-start/-end?Becomes
In essence, blocks of imports before and after the comment get sorted in their own separate groups; notice how lib4 stays in the top group and lib3 stays in the bottom.
We do not know where to put the import with
// prettier-ignore. Let’s imagine the situation:Now where to put this ignored import? I don’t think that this feature will make the majority of our users happy. Please feel free to open the issue for further discussion.