Before you start
Download and install Node.js.
To install JSCS globally
To enable JSCS and configure its behavior in IntelliJ IDEA
In the JSCS Package field, specify the location of the
jscspackage installed in the current project, see Installing JSCS.
Specify the configuration to use.
By default, IntelliJ IDEA first looks for a
jscsConfigproperty 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
jscsConfigproperty 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
jscsConfigproperty 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 of the file in the Path field. Select the path from the list, or type it manually, or click and select the relevant file from the dialog that opens.
To have a predefined set or rules applied, choose the desired set from the Code Style Preset list.