question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Non .editorconfig settings are ignored

See original GitHub issue

Summary

When using this plugin and a .editorconfig file exists and the checkbox “use .editorconfig” is enabled settings like “jsx single quote” will be ignored.

Github Repository to Reproduce Issue

Link to a Github repo that can be used to reproduce the issue.

Steps To Reproduce:

  1. Install this plugin
  2. Enable the “use .editorconfig” option
  3. Enable “jsx single quotes”
  4. Create an empty “.editorconfig” file
  5. Format a .jsx file where quotes are double quotes

Expected result

Double quotes should be transformed to single quotes, because the vs code setting is activated and there is no rule in the .editorconfig.

Actual result

Nothing happends

Additional information

I saved my vs code settings in user scope so that e.g. the prettier settings are the same on every project. But the plugin ignores all settings when there is a .editorconfig even when there is no rule for formating quotes

VS Code Version: 1.46.1

Prettier Extension Version: 5.1.3

OS and version: Windows 10

Prettier Log Output

LOG GOES HERE. DO NOT USE A SCREESHOT, COPY AND PASTE THE TEXT

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ntottencommented, Jul 3, 2020

This is by design. If you have either an editorconfig or prettier config those will be used. VSCode settings aren’t ONLY used when no other config is available.

0reactions
github-actions[bot]commented, Nov 13, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Settings in .editorconfig are ignored or get overridden
It seems to me that IntelliSense is not respecting the .editorconfig anymore. I use the NuGet package StyleCop.Analyzers and Microsoft.CodeAnalysis.
Read more >
Why is my .editorconfig file being ignored? - Stack Overflow
I have a very simple Visual Studio solution with one small project. I followed the docs exactly to create my . editorconfig file,...
Read more >
EditorConfig settings - Visual Studio (Windows) - Microsoft Learn
Settings in EditorConfig files let you maintain consistent coding styles and settings in a codebase, such as indent style, tab width, end of ......
Read more >
Editorconfig: formatter control options are ignored - YouTrack
Editorconfig : formatter control options are ignored. 6. Is duplicated by 1 ... There is 1 attachment that is not visible to you....
Read more >
Ignoring editor config files in Git - Sourcegraph docs
Globally, in all Git repositories via ~/.gitignore; Per-repository, via .git/info/exclude (which is just like .gitignore but not committed to the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found