ESLint and Prettier - Solutions-Needed/solutions-needed GitHub Wiki
Install Visual Studio Code extensions.
In order to be able to use all the formatting functionalities ESLint and Prettier have to offer, some additional steps you will need to do are:
- Going into View tab in VSCode, and click on Extensions.
- Once there, typesearch ESLint, and install the first option it appears, then do the same with Prettier.
- Right after that, in the View tab as well, click on Command Palette (you can also use the shortcut crtl/command +shift+p ).
- Type preference user settings on the search bar, and click the option.
- In the new seatch bar type save and a checkbox saying "Editor:Format on save" would appear.
- Be sure you check it.
- Give the program a few seconds to recognize them and you should be good to go.
- You can try adding a new line (\n) in the middle of a sentence and click save, esLint should automatically fix the error.