Newer Version Available

This content describes an older version of this product. View Latest

Use ESLint Rules in Visual Studio Code

The ESLint rules for warnings against Lightning web components are displayed in Visual Studio (VS) Code where your code violates them. The rules map to distortions that affect your code. The popup for a rule violation includes a link to documentation for the rule.

Salesforce recommends using Visual Studio Code with the Salesforce Extensions for Visual Studio Code to develop offline Lightning web components.

Note

The ESLint rules are documented in the ESLint Plugin LWC Mobile GitHub repository.

Here you can see the popup for a lint rule violation.

ESlint rule

This popup shows a lint warning, not an error.

For more information on how to use Apex and GraphQL while mobile and offline, see Use Apex While Mobile and Offline and Use GraphQL While Mobile and Offline in the Mobile and Offline Developer Guide.