prettier/prettier
Ver no GitHubPassing in an ignored file should emit a warning
Open
#15.700 aberto em 21 de nov. de 2023
area:clihelp wanted
Description
Environments:
- Prettier Version: 3.1.0
- Running Prettier via: CLI
- Runtime: All
- Operating System: All
- Prettier plugins (if any):
Steps to reproduce:
StackBlitz: https://stackblitz.com/edit/stackblitz-starters-gw5hhu?file=package.json
- Run
npm run node_modulesto demonstrate that prettier does not warn that the file innode_modulesis ignored. It actually doesn't understand the file path.
[error] No matching files. Patterns: ./node_modules/vue/dist/vue.global.prod.js
- Run
npm run distto demonstrate that prettier will ignore the file in the.gitignored directory, but still output the original code without warning that an ignored file was passed in
Expected behavior:
For prettier to inform the user that the code was not prettified because the file path matched the ignore list
It should also warn if the path is in node_modules, that the user should set --with-node-modules.
Actual behavior: No warnings