GoLand 2017.3 Help

JSHint

The following is only valid when JavaScript Support Plugin is installed and enabled!

File | Settings | Languages and Frameworks | JavaScript | Code Quality Tools | JSHint for Windows and Linux
GoLand | Preferences | Languages and Frameworks | JavaScript | Code Quality Tools | JSHint for macOS
Ctrl+Alt+S settings


Use this page to enable the built-in or downloaded JavaScript JSHint code verifier and configure its behaviour.

ItemDescription
Enable Select this checkbox to have JSHint applied to verify the code in the current project. After that the other controls in the page are enabled.
Use config files Select this checkbox to have the code verified according to the settings from a configuration file. A configuration file is a JSON file with the extension .jshintrc that specifies which JSHint options should be enabled or disabled. GoLand will look for a .jshintrc file in the working directory. If the search fails, GoLand will search in the parent folder, then again in the parent folder. The process is repeated until GoLand finds a .jshintrc or reaches the project root. To have GoLand still run verification when no .jshintrc is found in the project, specify the default configuration file to use.

When this checkbox is selected, the Options area is hidden and the default verification settings are unavailable.

Version Use this drop-down list to choose the version of the tool to apply.

GoLand comes bundled with version 2.9.4, which is used by default. To download another version, choose it from the list.

Options In this area, configure JSHint behaviour by enabling or disabling JSHint options. To enable or disable an option, select or clear the corresponding checkbox respectively. The controls in the area fall into two groups:
  • Enforcing options: select the checkboxes in this group to enable very strict behaviour of the verification tool and thus allow only safe JavaScript.
  • Relaxing options: select/clear the checkboxes in this area to suppress warnings when certain types of discrepancies are detected.
  • Environments: select/clear these checkboxes to specify for which environments you want global properties predefined.

The area is available only when the Use config files checkbox is cleared.

Last modified: 12 December 2017

See Also

Language and Framework-Specific Guidelines:

External Links: