Open markknol opened 8 months ago
Prettier only lowercases them, it doesn't add numeric separators;
It's likely it's from the numeric-separators-style
eslint rule instead:
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/numeric-separators-style.md
It can be turned of for hexadecimal
by setting onlyIfContainsSeparator: true
in that config object, while leaving it enabled for other number types.
On it 😄
When I write a nice color in code like
0xFF0000
, prettier converts this to0xff_00_00
. This is inconvenient because you can't copy this value back to photoshop or somewhere else which accepts hexadecimal colors. Can we turn this off?