Original Format:
const activeIndex = ref<number>(0)
Formatted Version:
const activeIndex = ref < number > 0
Prettier Output: click here for image description
Prettier Configuration:
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none"
}
Can you provide any suggestions or configuration options to address this issue? Thank you.
If I use const activeIndex = ref(0)
without type declaration, it would not lead to this problem.
EXPECTED: Prettier formatting should not alter this code