# JSHint

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/ja-jp/help/clion/llms.txt).

> **TL;DR**
> 必須プラグイン  ：
>
>
>
> `JavaScript and TypeScript`  - このプラグインは CLion にバンドルされており、デフォルトで有効化されています。

You can check your code with the [JSHint](http://jshint.com/about/) linter which is already bundled with CLion.

When [JSHint support is enabled](#ws_js_linter_jshint_enable), CLion highlights errors that JSHint detects, provides descriptions for them, and suggests quick-fixes where possible.

現在のファイルで検出されたエラーの説明とそれらのクイックフィックスは、エディターおよび [問題](linters.html#ws_js_linters_general_problems_tool_window)ツールウィンドウの   ファイル   タブから入手できます。

以前に開いたすべてのファイルのエラーとそれらのクイックフィックスは、   問題   ツールウィンドウの   プロジェクトエラー   タブに表示されます。 ツールウィンドウを開くには、エディターの右上隅にある   インスペクション   ウィジェットをクリックします。

![インスペクションウィジェット](https://resources.jetbrains.com/help/img/idea/2026.3/inspection-widget.png)

詳細については、 [エディターで問題を表示しクイックフィックスを適用する](linters.html#ws_js_linters_editor)および [問題ツールウィンドウ](linters.html#ws_js_linters_general_problems_tool_window)を参照してください。

Procedure: JSHint を有効にし、CLion でその動作を構成する

1. 設定   ダイアログ（ `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `⌘ Comma` (Xcode), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (ReSharper), `⌘ Comma` (ReSharper (macOS)), `Ctrl+Alt+S` (QtCreator), `⌘ Comma` (QtCreator (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) ）で  `言語 & フレームワーク | JavaScript | コード品質ツール | JSHint`  に移動します。

2. 開いた   JSHint   ページで、   有効化   チェックボックスを選択します。 その後、ページ上のすべてのコントロールが使用可能になります。

3. バージョン   フィールドで、使用するツールのバージョンを指定します。 CLion comes bundled with  version 2.10.2 , which is used by default. 別のバージョンをダウンロードするには、リストから選択します。

4. CLion で JSHint の動作を構成する

* 構成ファイルを使用する - このチェックボックスを選択すると、 `jshintConfig` プロパティのカスタム構成ファイル、 `.jshintrc` ファイル、 `パッケージ.json​​` から JSHint ルールが適用されます。 ルールが `.jshintrc` ファイルで構成されている場合、または `パッケージ.json​​` の `jshintConfig` プロパティで構成されている場合は、 デフォルト オプションを選択します。 CLion will first look for such configuration in the folder where the file to be checked is stored, then in its parent folder, and so on until the filesystem root is reached. または、 カスタム構成ファイル を選択し、下の パス フィールドでファイルの場所を指定します。 [JSHint 公式サイト(英語)](http://jshint.com/docs/)の JSHint 構成ファイルについて詳しく学びましょう。

* 検証ルールを手動で構成するには、 構成ファイルを使用する チェックボックスをオフにし、 オプション 領域で関連する検証を有効にします。 [JSHint 公式サイト(英語)](http://jshint.com/docs/options/)の詳細を参照してください。

## See also

