Skip to content

Linting

Linting is the process that underlines errors and warnings in the code. It is a great way to catch errors before they happen, and to enforce code style. We use the ESLINT VSCode extension for linting.

ESLint

ESLint is configured with an .eslintrc file. We have a main .eslintrc file in the root of the project, and a .eslintrc file in any package that needs to add to the main configuration.

Manual Linting

Since linting can be computationally expensive, the linter only works on opened files. If you want to lint the entire project:
1. Enter CTRL+SHIFT+P to open the Command Palette
2. Select Tasks: Run Task
3. Select eslint: lint whole folder