But using VS Code is not mandatory to develop a FoalTS app. So feel free to use another code editor if you prefer.
Configuring the linting
In order to directly print the ESLint errors in VS Code and auto-fix the problems on save you need to install the
It can be installed by launching VS Code Quick Open (
P), pasting the following command, and pressing enter:
ext install dbaeumer.vscode-eslint
Then, you will need to configure it for TypeScript and make it fix the errors on save (when it is possible).
Open the Command Palette (
P) and type
Open Settings (JSON).
Then extend the settings to add the options below.
Debugging with VS Code
Run the following command to create the suitable debug config files.
foal generate vscode-config
Now you can add a breakpoint in your code and start the app in debug mode.
The generated files also include configurations to run your unit and end-to-end tests.