Skip to main content

JSHint

Supported VersionLanguageWebsite
2.13.0JavaScripthttps://jshint.com

JSHint is a static analysis tool to detect errors and potential problems in JavaScript code.

Getting Started#

To start using JSHint, enable it in your repository settings.

To customize the configuration, use the standard .jshintrc or .jshintignore files. Configuration via jshintConfig in package.json is also supported.

Default Configuration for JSHint#

Sider uses the default configuration of .jshintrc when there is no custom configuration preset.

In addition, Sider uses the default configuration of .jshintignore.

Configuration#

Here is a configuration example via sider.yml:

linter:  jshint:    target: src    config: lint_yml/.jshintrc

You can use sereral options to make analysis fitter for your project.

NameTypeDefault
root_dirstring-
targetstring, string[].
configstring-

target#

This option allows you to specify directories to be analyzed.

alias: dir

config#

This option allows you to use your own configuration file for JSHint.