ESLint custom rules

Updated at:

ESLint is a configurable and extensible tool that identifies and reports on patterns in JavaScript code. It helps developers maintain a consistent code style and reduce potential errors.

Add a code scanning task

On the pipeline edit page, click Parallel Task, and in the drawer that opens on the right, select JavaScript Code Scan.

Use custom rules

Flow uses built-in ESLint rules by default. To use custom rules, select Use local ESLint configuration in the task configuration and ensure that the project root path contains a .eslintrc.* file.

After selecting the checkbox, enter * in the Dependencies Required for Running Local ESLint Configuration field to install all dependencies.

For more rules, see the ESLint official documentation.