When JSLint support is enabled, JetBrains Rider highlights errors that JSLint detects, provides descriptions for them, and suggests quick-fixes where possible.
Descriptions of the errors detected in the current file and quick-fixes for them are available from the editor.
Before you start
Install and enable the JSLint plugin on the Settings/Preferences | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains Marketplace.
Enable JSLint and configure its behavior in JetBrains Rider
In the Settings/Preferences dialog (Control+Alt+S), go to , and select the Enable checkbox. After that the other controls on the page become available.
By default, the tool reports detected problems of all types. To skip problems of a certain type, select the checkbox next to this type in the Tolerate area.
Learn more about JSLint options from the JSLint official website.
In the Assume area, specify the targeted environment to check the code against.
In the Globals field, specify the predefined global variables. Type their names or use
To verify .json files as well, select the JSON checkbox In the Validate also area.