Prettier-vscode: Leading zero

Created on 11 Jun 2018  路  5Comments  路  Source: prettier/prettier-vscode

In a project, I apply lint validation in css (scss) codes, but specifically in .vue files (single file component of vue.js).

One of the validations determines that values below 1 need not contain 0 before the point. This validation is called "number-leading-zero" or simply "leading-zero".

https://stylelint.io/user-guide/rules/number-leading-zero/

The problem is that prettier converts by default all values smaller than 1 to a 0 and more its decimal place.

I need to allow values below 1 to be entered without 0 before the period, conforme o exemplo abaixo:

this is valid:

border: .5px;

this is not valide:

border: 0.5px;

How do I disable automatic conversion to "leading zero" in vscode?

locked

All 5 comments

I have no idea what you mean with 'leading zero'.
Is it related to prettier or is this a general vscode question?

Can you give more information?

@RobinMalfait I'm sorry for the lack of information. I supplemented in more detail.

This is a Prettier decision. closing

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings