---
schema_version: "1"
id: 7c7aab7d654d8628a3b058733f48e8b27a4312b563bfdb401a6620cf7918c716
title: ESLint (Retired)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/code-analyzer/salesforce-code-analyzer/guides/v3x/engines/eslint-engine.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/eslint-engine.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0a3d78a4604295fe33e11df41433bced0e08d1c8a8ff53ea6b5142ae49e60266
products:
  - Salesforce Code Analyzer
---
# ESLint (Retired)

ESLint is a popular linting tool for JavaScript. It provides numerous static-analysis rules that help developers write quality code.

## How Salesforce Code Analyzer Uses ESLint

The Code Analyzer `scanner run` command uses ESLint to scan targeted JavaScript files. By default, all rules are executed, but you can change which rules are evaluated through Code Analyzer optional flags described in the Code Analyzer Command Reference.

ESLint is highly configurable and Code Analyzer supports these plug-ins.

- [TypeScript-ESLint](https://github.com/typescript-eslint/typescript-eslint) adds support for [TypeScript](https://typescriptlang.org), a strongly typed superset of JavaScript. By default, this plug-in is used to evaluate any targeted TypeScript (`.ts`) files.
- [ESLint-LWC](https://github.com/salesforce/eslint-plugin-lwc), the official ESLint rules for Salesforce Lightning Web Components (LWC). ESLint rules aren’t enabled by default. They can be enabled on a per-run basis with the `--engine eslint-lwc` flag or on a permanent basis by directly modifying the `config.json` file.

## See Also

- [ESLint](https://eslint.org/)
- [Salesforce Code Analyzer Command Reference](https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/command-reference/code-analyzer-command-reference.md)
