Skip to main content

๐Ÿš€ VSCode support

To make the VSCode ESLint Extension working correctly we'll need to enable a few settings. It's advisable to enable them at the workspace level, meaning in the root of the project at .vscode/settings.json

You will also need to enable linting on specified file extensions:

.vscode/settings.json
{
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
]
}

For Astro projects, add the astro extension too:

.vscode/settings.json
{
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
"astro"
]
}