Class ArcanistJSHintLinter
Uses "JSHint" to detect errors and potential problems in JavaScript code.
To use this linter, you must install jshint through NPM (Node Package
Manager). You can configure different JSHint options on a per-file basis.
If you have NodeJS installed you should be able to install jshint with
npm install jshint -g (don't forget the -g flag or NPM will install
the package locally). If your system is unusual, you can manually specify
the location of jshint and its dependencies by configuring these keys in
your .arcconfig:
If you want to configure custom options for your project, create a JSON
file with these options and add the path to the file to your .arcconfig
by configuring this key:
Example JSON file (config.json):
{
"predef": [ // Custom globals
"myGlobalVariable",
"anotherGlobalVariable"
],
For more options see http://www.jshint.com/options/.
Tasks
Methods
public getJSHintOptions()
This method is not documented.
private getJSHintPath()
This method is not documented.
public getLintNameMap()
This method is not documented.
public getLintSeverityMap()
This method is not documented.
public getLinterName()
This method is not documented.
public lintPath($path)
| parameters | wild | $path | |
| return | wild | | |
This method is not documented.
public willLintPaths(array $paths)
| parameters | array | $paths | |
| return | wild | | |
This method is not documented.