Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete `··`, Replace `············` with `······` eslint() eslintprettier/prettier

I am using eslint, prettier and typescript. after configuring indent:"error" in .eslintrc, it is showing the below three types of errors.

Delete eslintprettier/prettier

Delete ··``

Replace ············with······``

all the above are from rule eslintprettier/prettier

What is the possible reason for the issue and what correct config should we follow to fix/avoid/overcome these types of issue.

This is how it looks like

like image 285
amoeba Avatar asked Oct 30 '25 08:10

amoeba


2 Answers

It's telling you to indent with less spaces. The dots are just for counting it. This is coming from the Prettier plugin.

like image 79
0xLogN Avatar answered Nov 01 '25 23:11

0xLogN


If you prefer to intend with four spaces, and want Prettier to help enforce that, you can accomplish this by making a .prettierrc file and paste this code into it:

{
"tabWidth":4    
}
like image 37
Octo-head Avatar answered Nov 01 '25 23:11

Octo-head



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!