DTP jshint reporter producing output more friendly to VS Code for use with Ctrl+click in a terminal view.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
800 B

3 years ago
# Digital Telepresence jshint reporter
A jshint error/warning reporter using an output format that is friendly to VS Code and other editors to use when navigating to the error in your source code.
## Getting started
First, make sure Yarn has linked the module in your workspace as follows:
```sh
cd ~/projects/dtp/dtp-jshint-reporter
yarn link
```
This will expose the project in that directory to Yarn for linking elsewhere on your system.
Next, add `dtp-jshint-reporter` to your project as follows:
```sh
cd ~/projects/dtp/[your-project]
yarn link dtp-jshint-reporter
```
In your gulpfile, do something like:
```js
function dtp_jshint_services ( ) {
var jsrc = 'app/services/**/*.js';
return gulp
.src(jsrc)
.pipe(jshint())
.pipe(jshint.reporter('dtp-jshint-reporter'))
;
}
```