"editorconfig" configuration prints an "Ignored unknown option" warning
See original GitHub issueAdding { "editorconfig": true }
to the configuration file, although it works, but prints [warn] Ignored unknown option { editorconfig: true }.
(multiple times).
Environments:
- Prettier Version: 2.7.1
- Running Prettier via: CLI
- Runtime: Node.js v16.14.2
- Operating System: Ubuntu 20.04.4
- Prettier plugins (if any): –
Steps to reproduce:
Add { "editorconfig": true }
to .prettierrc.json
and run prettier.
Expected behavior: No warn message is printed.
Actual behavior:
This message is printed (multiple times): [warn] Ignored unknown option { editorconfig: true }.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Ignored unknown option { editorconfig: true } #6176 - GitHub
When using the CLI, Prettier always reads .editorconfig if it exists. There is no option. The API function prettier.resolveConfig has an ...
Read more >invalid -w option ignored: unknown warning category ... - You.com
1 Answer. Module yaml is provided by PyYAML package, so do a pip install PyYAML. However, look at your setup.py, dependencies should be...
Read more >CLI - Prettier
If a config file is found will evaluate it and ignore other CLI options. If no config file is found, CLI options will...
Read more >VSCode single to double quote automatic replace
A part a green warning ( Unknown configuration setting ) the single quotes are no more ... this will ignore your .editorconfig file...
Read more >How to configure Prettier and VSCode - Gleb Bahmutov
Run Prettier from ESLint ... Notice in the screenshot below how ESLint warnings in VSCode editor include style errors from Prettier. ... If...
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
Is there any reason it cannot be specified in the config file? It actually recognizes the option if placed there.
The docs makes no mention of this either https://prettier.io/docs/en/configuration.html#editorconfig
Indeed, it shouldn’t be there unless I’m missing something. Need to investigate. Thanks for noticing this.