IntelliJ IDEA 2017.1 Help


This feature is supported in the Ultimate edition only.

File | Settings | Languages and Frameworks | JavaScript | Code Quality Tools | JSCS for Windows and Linux
IntelliJ IDEA | Preferences | Languages and Frameworks | JavaScript | Code Quality Tools | JSCS for macOS


Use this page to enable the JavaScript JSCS code verifier and to configure its behaviour.

Enable Select this check box to have JSCS applied to verify the code in the current project. After that the other controls in the page are enabled.
Node Interpreter In this field, specify the NodeJS installation home. Type the path to the NodeJS executable file manually, or click the browseButton.png button and select the location in the dialog box, that opens.

If you have appointed one of the installations as default, the field displays the path to its executable file.

JSCS Package In this field, specify the location of the jscs package installed in the current project, see Installing JSCS.
Configuration File In this area, appoint the configuration to use.

By default, IntelliJ IDEA first looks for a jscsConfig property in the package.json file of the current project. If no such property is found, IntelliJ IDEA looks for a .jscsrc or a .jscs.json configuration file. IntelliJ IDEA starts the search from the folder where the file to be checked is stored, then searches in the parent folder, and so on until reaches the project root. Accordingly, you have to define the configuration to apply either as a jscsConfig property in the package.json file or in a .jscsrc or a .jscs.json configuration file, or in a custom JSON configuration file.

You can also apply a predefined set of rules, either independently or in combination with a configuration file. In the latter case, the rules from the configuration file override the predefined rules.

  • To have IntelliJ IDEA look for a jscsConfig property in the package.json file or for a .jscsrc or a .jscs.json file, choose the Search for config(s) option.
  • To use a custom file, choose the Configuration File option and specify the location fo the file in the Path field. Choose the path from the drop-down list, or type it manually, or click the /help/img/idea/2017.1/browseButton.png button and select the relevant file from the dialog box that opens.
  • To have a predefined set or rules applied, choose the desired set from the Code Style Preset drop-down list.
Code Style Preset From this drop-down list, choose the set of predefined rules associated with the code style you use.

See Also

Last modified: 18 July 2017