You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Important: as you can see, I have both tslintIntegration and eslintIntegrationenabled in my global Visual Studio Code settings.
Problem
When I run the extension (either manually or by saving the file), all my single quotes are converted into double quotes, despite the ESLint config stating otherwise.
When I disable "prettier.tslintIntegration", the extension works as expected.
Question
My understanding is:
prettier-tslint is prioritized over prettier-eslint.
Since there is no tslint.json file present in the repository, prettier-tslint looks for .prettierrc.
It finds .prettierrc, but because it doesn't override the default setting for singleQuote (which is false ≡ use double quotes), the default setting is used.
Is that intended? It was a bit problematic for me to find out about it. I had both integrations enabled in my global settings, and in this specific project, the extension started to behave in a weird way.
If it is intended indeed than perhaps it would be a good idea to make it explicit in the README (which I can do).
Please let me know what you think.
The text was updated successfully, but these errors were encountered:
Hello and thank you for your work. I've noticed some unexpected behavior and I was wondering whether it was intentional or not.
In my project, ESLint is used to lint both JavaScript and TypeScript code.
Configuration
.eslintrc.js
.prettierrc
~/Library/Application Support/Code/User/settings.json
Important: as you can see, I have both
tslintIntegration
andeslintIntegration
enabled in my global Visual Studio Code settings.Problem
When I run the extension (either manually or by saving the file), all my single quotes are converted into double quotes, despite the ESLint config stating otherwise.
When I disable
"prettier.tslintIntegration"
, the extension works as expected.Question
My understanding is:
prettier-tslint
is prioritized overprettier-eslint
.tslint.json
file present in the repository,prettier-tslint
looks for.prettierrc
..prettierrc
, but because it doesn't override the default setting forsingleQuote
(which isfalse
≡ use double quotes), the default setting is used.Is that intended? It was a bit problematic for me to find out about it. I had both integrations enabled in my global settings, and in this specific project, the extension started to behave in a weird way.
If it is intended indeed than perhaps it would be a good idea to make it explicit in the README (which I can do).
Please let me know what you think.
The text was updated successfully, but these errors were encountered: