Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.3.1
-
115916f21 (dev), aa603e154 (6.6)
Description
The following code:
import QtQuick 2 Rectangle { property int a: { let b = { name: "Arthur", age: 14 }; } }
is converted to:
import QtQuick 2 Rectangle { property int a: { let b = { "name": "Arthur", "age": 14 }; } }
The issue is that the js object keys are escaped, ideally according to various js code style guide this should only be escaped when needed. See https://eslint.org/docs/latest/rules/quote-props