PhpStorm 8.0.2 Help

JSLint

Use this page to enable the built-in JavaScript JSLint code verifier
and configure its behaviour and sensitivity.

Item

Description

Enable

Select this check box to have JSLint applied to verify the code in the current project. After that the other controls in the page are enabled.

Tolerate

In this area, specify the discrepancies you want JSLint to consider worth reporting by enabling or disabling JSLint options.
By default, discrepancies of all types are considered worth reporting. To have the tool skip discrepancies of a certain type,
select the check box next to this type.

Assume

In this area, specify for which environments you want global properties predefined.

Stop on first error

Select this check box to have the verification process suspend as soon as the first valuable discrepancy is detected.

In this tet box, type the number of spaces to be used for indentation.
This setting corresponds to the indent option.

Maximum line length

In this text box, limit the number of characters acceptable in one line.
This setting corresponds to the maxlen option.

Maximum number of errors

In this text box, specify the maximum number of warnings that can be reported. The default setting is 50.
This setting corresponds to the maxerr option.

Predefined

In this text box, specify the predefined global variables by names or through object keys. Use commas (,> as separators.

This setting corresponds to the predef option.

Validate also

In this area, enable or disable additional verification of HTML, CSS, or JSON context and configure the checking mode, when enabled.

HTML: select this check box to have HTML context verified. Specify how you want HTML event handlers and HTML fragments treated:
by default, they are reported as errors. To have the tool skip them, select the Tolerate HTML event handlers and Tolerate HTML fragments check boxes respectively.

CSS: select this check box to have CSS context verified. Specify how you want CSS workarounds treated:
by default, they are reported as errors. To have the tool skip them, select the Tolerate CSS workarounds check box.