- In Visual Studio Code go to View -> Extensions
- Search for
eslint
: ESLint - Click Install
- In Visual Studio Code go to View -> Extensions
- Search for
prettier code formatter
: Prettier - Click Install
In order to fix React autocompletions since React 18 :
- In Visual Studio Code go to View -> Extensions
- Search for
typescript nightly
: JavaScript and TypeScript Nightly - Click Install
- Go to File -> Preferences -> Settings.
- Scroll down to
Edit in settings.json
. It will open your IDE settings in json format. - Add this after the first opening curly brace (or before the last ending one):
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"files.eol": "\n",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2,
"prettier.jsxSingleQuote": true,
"prettier.singleQuote": true,
Force Git to use LF everywhere:
git config --global core.eol lf
git config --global core.autocrlf input