# JavaScript linters

> **TL;DR**
> Required plugin:
>
>
>
> `JavaScript and TypeScript` -    the plugin is bundled with IntelliJ IDEA and enabled by default.

IntelliJ IDEA integrates with [ESLint](http://eslint.org/) and other most popular JavaScript code linters that detect problems in your code without executing it.

When installed and enabled, a linter activates automatically every time you open a JavaScript file, reports detected errors and warnings, and suggests quick-fixes where possible.

Descriptions of the errors detected in the current file and quick-fixes for them are available from the editor and from the File tab of the [Problems](#ws_js_linters_general_problems_tool_window) tool window.

Errors in all previously opened files and quick-fixes for them are shown in the Project Errors tab of the Problems tool window. To open the tool window, click the Inspection widget in the upper-right corner of the editor:

![Inspection widget](https://resources.jetbrains.com.cn/help/img/idea/2026.2/inspection-widget.png)

For more information, refer to [View problems and
apply quick-fixes in the editor](#ws_js_linters_editor) and [Problems tool window](#ws_js_linters_general_problems_tool_window).

## View problems and apply quick-fixes in the editor

Procedure:

1. In the editor, hover over the highlighted problem. IntelliJ IDEA shows a tooltip with a description of the problem.

![JavaScript linters: errors and warnings are highlighted, the description of a problem is shown in a tooltip.](https://resources.jetbrains.com.cn/help/img/idea/2026.2/ws_js_linters_common_show_description.png)

To resolve the problem, click <Linter name>: Fix '<rule name>' or press `Alt+Shift+Enter` (Windows), `Alt+Shift+Enter` (macOS), `Alt+Shift+Enter` (IntelliJ IDEA Classic (macOS)), `Alt+Shift+Enter` (macOS System Shortcuts), `Alt+Shift+Enter` (XWin), `Alt+Shift+Enter` (GNOME), `Alt+Shift+Enter` (KDE), `Alt+Shift+Enter` (Emacs), `Alt+Shift+Enter` (Sublime Text), `Alt+Shift+Enter` (Sublime Text (macOS)), `Alt+Shift+Enter` (NetBeans), `Alt+Shift+Enter` (Visual Studio), `Alt+Shift+Enter` (Visual Studio (macOS)), `Alt+Shift+Enter` (Eclipse), `Alt+Shift+Enter` (Eclipse (macOS)).

2. To resolve all the detected problems in the current file, click More actions… ( `Alt+Enter` (Windows), `⌥ ⏎` (macOS), `⌥ ⏎` (IntelliJ IDEA Classic (macOS)), `⌥ ⏎` (macOS System Shortcuts), `Alt+Enter` (XWin), `Alt+Enter` (GNOME), `Alt+Enter` (KDE), `Alt+Enter` (Emacs), `Alt+Enter` (Sublime Text), `⌥ ⏎` (Sublime Text (macOS)), `Alt+Enter` (NetBeans), `Alt+Enter` (Visual Studio), `⌥ ⏎` (Visual Studio (macOS)), `Ctrl+1` (Eclipse), `⌘ 1` (Eclipse (macOS))) and select `<Linter name>: Fix current file` from the list.

![JavaScript linters: resolving problems](https://resources.jetbrains.com.cn/help/img/idea/2026.2/ws_js_linters_common_show_description_intention_actions.png)

Alternatively, press `Alt+Enter` (Windows), `⌥ ⏎` (macOS), `⌥ ⏎` (IntelliJ IDEA Classic (macOS)), `⌥ ⏎` (macOS System Shortcuts), `Alt+Enter` (XWin), `Alt+Enter` (GNOME), `Alt+Enter` (KDE), `Alt+Enter` (Emacs), `Alt+Enter` (Sublime Text), `⌥ ⏎` (Sublime Text (macOS)), `Alt+Enter` (NetBeans), `Alt+Enter` (Visual Studio), `⌥ ⏎` (Visual Studio (macOS)), `Ctrl+1` (Eclipse), `⌘ 1` (Eclipse (macOS)) and choose the relevant suggestion from the list.

## Problems tool window

For each error IntelliJ IDEA shows a brief description and the number of the line where the error occurred. From an error message, you can navigate to the code where the problem occurred, or apply a quick-fix, or fix the problem manually in the Editor Preview pane (![the Open Preview button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.actions.previewDetails.svg)).

Procedure:

* To open the Problems tool window, click the Inspections widget in the upper-right corner of the editor.

![Inspection widget](https://resources.jetbrains.com.cn/help/img/idea/2026.2/inspection-widget.png)

Alternatively, select `View | Tool windows | Problems` from the main menu or press `Alt+6` (Windows), `⌘ 6` (macOS), `⌘ 6` (IntelliJ IDEA Classic (macOS)), `⌘ 6` (macOS System Shortcuts), `Alt+6` (XWin), `Alt+6` (GNOME), `Alt+6` (KDE), `Alt+6` (Emacs), `Alt+6` (Sublime Text), `⌘ 6` (Sublime Text (macOS)), `Alt+6` (NetBeans), `Alt+6` (Visual Studio), `⌘ 6` (Visual Studio (macOS)), `Alt+6` (Eclipse), `⌘ 6` (Eclipse (macOS)).

* In the File tab, view the errors detected in the file from the active editor tab.

![Quick-fixes in the Problems tool window](https://resources.jetbrains.com.cn/help/img/idea/2026.2/ws_js_eslint_problems_tw.png)

* In the Project Errors tab, view the errors in all previously opened files, with error messages grouped by files in which they were detected.

You can also enable the [project-wide analysis](file-and-project-wide-analysis.html#project-wide-analysis). In this case, all problems detected in your project will be displayed on this tab.

* In the Inspection Results tab, view problems detected after running one or multiple inspections.

* To view suggested quick-fixes for a problem, select the corresponding error message and then select Show Quick Fixes from its context menu, or click ![the Show Quick Fixes button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.codeInsight.intentionBulb.png) on the toolbar, or just press `Alt+Enter` (Windows), `⌥ ⏎` (macOS), `⌥ ⏎` (IntelliJ IDEA Classic (macOS)), `⌥ ⏎` (macOS System Shortcuts), `Alt+Enter` (XWin), `Alt+Enter` (GNOME), `Alt+Enter` (KDE), `Alt+Enter` (Emacs), `Alt+Enter` (Sublime Text), `⌥ ⏎` (Sublime Text (macOS)), `Alt+Enter` (NetBeans), `Alt+Enter` (Visual Studio), `⌥ ⏎` (Visual Studio (macOS)), `Ctrl+1` (Eclipse), `⌘ 1` (Eclipse (macOS)).

To fix a problem, select the appropriate quick-fix from the list.

![Problems tool window: fix a problem](https://resources.jetbrains.com.cn/help/img/idea/2026.2/ws_js_linters_problems_tw_context_menu_fix.png)

* Alternatively, click ![the Open Editor Preview button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.actions.previewDetails.svg) to open the Editor Preview pane and fix the problem manually there, without leaving the tool window.

![Problems tool window: fix errors in the Editor Preview pane](https://resources.jetbrains.com.cn/help/img/idea/2026.2/ws_js_linters_problems_tw_preview_pane.animated.gif)

* To resolve the detected problems in the whole file, select <Linter name >: Fix current file from the context menu.

* To navigate to the place where an error occurred, double-click the corresponding error message, or select Jump to Source from its context menu, or just press `F4` (Windows), `⌘ ↓` (macOS), `F4` (IntelliJ IDEA Classic (macOS)), `F4` (macOS System Shortcuts), `F4` (XWin), `F4` (GNOME), `F4` (KDE), `F4` (Emacs), `F4` (Sublime Text), `F4` (Sublime Text (macOS)), `F4` (NetBeans), `F4` (Visual Studio), `⌘ ↓` (Visual Studio (macOS)), `F12` (Eclipse), `F3` (Eclipse (macOS)).

* You can also edit the linter's settings, suppress a rule in the statement where a problem occurred or in the whole file, as well as exclude the current file from analysis. See [Disable and suppress inspections](disabling-and-enabling-inspections.html) for details.

![Problems tool window: context menu](https://resources.jetbrains.com.cn/help/img/idea/2026.2/ws_js_linters_problems_tw_context_menu.png)

* To filter out error messages by their severity and customize their sorting, click ![the View Options button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.general.inspectionsEye.svg) and select or clear the relevant items in the list.

![View Options: configuring the appearance of the Problems tool window](https://resources.jetbrains.com.cn/help/img/idea/2026.2/ws_js_linters_problems_tw_view_options.animated.gif)

* To copy an error message, select Copy Problem Description from its context menu or press `Ctrl+C` (Windows), `⌘ C` (macOS), `⌘ C` (IntelliJ IDEA Classic (macOS)), `⌘ C` (macOS System Shortcuts), `Ctrl+C` (XWin), `Ctrl+C` (GNOME), `Ctrl+C` (KDE), `Ctrl+C` (Emacs), `Ctrl+C` (Sublime Text), `⌘ C` (Sublime Text (macOS)), `Ctrl+C` (NetBeans), `Ctrl+C` (Visual Studio), `⌘ C` (Visual Studio (macOS)), `Ctrl+C` (Eclipse), `⌘ C` (Eclipse (macOS)).

## See also

### Inspections

[Code inspections](code-inspection.html) [Get results and fix problems](resolving-problems.html)

