PyCharm 2016.1 Help

ESLint

File | Settings | Languages and Frameworks | JavaScript | Code Quality Tools | ESLint for Windows and Linux
PyCharm | Preferences | Languages and Frameworks | JavaScript | Code Quality Tools | ESLint for OS X
Ctrl+Alt+S

settings

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

ItemDescription
Enable Select this check box to have ESLint 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.
ESLint Package In this field, specify the location of the eslint package installed in the current project, see Installing ESLint.
Configuration file In this area, appoint the configuration to use.

By default, PyCharm first looks for a .eslintrc configuration file. PyCharm 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. If no .eslintrc file is found, ESLint uses its default embedded configuration file. Accordingly, you have to define the configuration to apply either in a .eslintrc configuration file, or in a custom JSON configuration file, or rely on the default embedded configuration.

  • To have PyCharm look for a .eslintrc file, choose the Search for .eslintrc option. If no .eslintrc file is found, the default embedded configuration file will be used.
  • 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 browseButton button and select the relevant file from the dialog box that opens.
Additional Rules Directory In this field, specify the location of the files with additional code verification rules. These rules will be applied after the rules from .eslintrc or the above specified custom configuration file and accordingly will override them.
Extra ESLint Options In this field, specify additional command line options to run ESLint with using spaces as separators. See ESLint Command Line Interface Options for details.

See Also

Last modified: 20 April 2016