Ignore Node modules by default (to match CLI behaviour)
See original GitHub issuePrettier’s CLI ignores node_modules
by default. However, for this VSCode extension, users must manually specify node_modules
in a .prettierignore
.
Could we make this extension’s default behaviour match that of the CLI, which is to ignore node_modules
?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Webpack not excluding node_modules - Stack Overflow
From your config file, it seems like you're only excluding node_modules from being parsed with babel-loader , but not from being bundled.
Read more >config - npm Docs
Run npm config ls -l to see a set of configuration parameters that are internal to npm, and are defaults if nothing else...
Read more >Configuration options | Yarn - Package Manager
This overrides the default behavior of comparing against master, origin/master, upstream/master, main, origin/main, and upstream/main. Supports git branches, ...
Read more >Command-line API | Node.js v19.3.0 Documentation
Node. js comes with a variety of CLI options. These options expose built-in debugging, multiple ways to execute scripts, and other helpful runtime...
Read more >CLI - Prettier
Prettier CLI will ignore files located in node_modules directory. To opt out from this behavior, use --with-node-modules flag.
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 FreeTop 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
Top GitHub Comments
Debugging (e.g. adding
console.log
s), and then occasionally I “commit” changes tonode_modules
viapatch-package
.This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.