Hi!
Does anyone know how to automatically format our code in VSCode in React?
I’m using ESlint but nothing happened on save.
Hi!
Does anyone know how to automatically format our code in VSCode in React?
I’m using ESlint but nothing happened on save.
You can usually find an option in the settings that allows you to format on save with a particular linter. If not, the page for that VS Code extension may tell you something to specifically add to the settings.json
to enable it. If all else fails, I’m sure a Google search will pull something up. Just search “ESlint format on save”
Go to settings(ctrl + ,
) and search for “format”. The third option should be your solution.
Its on, to format on save, but does not seem to be working, got to check the ESlint conf.