Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop vs code formatter from formatting .env file

I'm using prettier & eslint on vs code and i would like to stop it from formatting my .env file on save.

It adds semi-colons to the end of every variable, which is obviously not good.

like image 465
Adri Avatar asked Sep 11 '25 12:09

Adri


1 Answers

You'll have to configure ESlint and Prettier separately.

Check this answers for instructions on how to configure ESLint, and this one for instructions on how to force Prettier to ignore files.

like image 56
Dorin Botan Avatar answered Sep 13 '25 04:09

Dorin Botan