[quotes] Insert unexpected quotes when using this plugin and format code by prettier. #546
Labels
external
This issue is with another package, not typescript-eslint itself
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
wontfix
This will not be worked on
working as intended
Issues that are closed as they are working as intended
Repro
Expected Result
All works well.
Actual Result
Each time format the code, then it would insert unexpected quotes between
<><div/></>
, looks like this:Additional Info
To reproduce it, maybe we should notice that:
plugin:react/recommended
@typescript-eslint/eslint-plugin
andprettier
.quotes
rule must be set, the inserted quotes would be'
ifquotes
rule set tosingle
, and be"
if set todouble
.<></>
(short syntax offragments
), as the above codetest1
shows..tsx
files, I triedjsx
but everything works well inconceivable.Versions
@typescript-eslint/eslint-plugin
1.9.0
@typescript-eslint/parser
1.9.0
TypeScript
3.4.5
ESLint
5.16.0
node
v8.11.3
npm
6.8.0
The text was updated successfully, but these errors were encountered: