AppCode 2018.1 Help

ESLint


Use this page to enable the JavaScript ESLint code verifier and to configure its behaviour. If you are using JavaScript Standard Style in your application, you can set it as default here.

To set the JavaScript Standard Style as default
In the Settings/Preferences dialog (⌘,), In the Settings/Preferences dialog (⌘,), choose Editor | Code Style | JavaScript), and on the the Code Style. JavaScript page that opens, click Set from, then choose Predefined Style | JavaScript Standard Style. The style will replace your current scheme.

ItemDescription
Enable Select this checkbox to have ESLint/Standard 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 Node.js interpreter to use. If you choose the Project alias, AppCode will automatically use the project default interpreter from the Node interpreter field on the Node.js and NPM page.

In most cases, AppCode detects the project default interpreter and fills in the field itself. You can also choose another configured local interpreter or click browseButton and configure a new one.

ESLint Package In this field, specify the location of the eslint or standard package.
Configuration file In this area, appoint the configuration to use.
  • If you choose Automatic search, AppCode looks for a .eslintrc file or tries to detect a configuration defined under eslintConfig in a package.json. AppCode first looks for a .eslintrc or package.json in the folder with the file to be linted, then in its parent folder, and so on up to the project root. If the search fails, ESLint uses its default embedded configuration file.
  • Choose Configuration File to use a custom file and specify the file location in the Path field.
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.
Last modified: 29 March 2018

See Also