Skip to content

Delete 0 #16161

Closed Answered by kachkaev
25Das asked this question in Q&A
Mar 21, 2024 · 1 comment
Discussion options

You must be logged in to vote

👋 @25Das! The suggested way of integrating Prettier and ESLint is via https://www.npmjs.com/package/eslint-plugin-prettier. This essentially turns off all ESLint rules that may conflict with Prettier output.

If you do need to format decimals somewhere (e.g. in a list of test cases or in seed data), adding // prettier-ignore is the way to go:

// prettier-ignore
const myValue = 10000.00;

Playground

If you want to keep double digits in the entire codebase, Prettier might not be the right option for you (unless you want to fork it). See also: #5287

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kachkaev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants