Closed MoOx closed 8 years ago
Adding source
as param for the reporter should do the trick, don't you think ?
You can pass a custom reporter...
Yeah, but can't access the filename. It's not accessible.
@MoOx The caveat is that the reporter for jshint-loader is called for every file; and thus the jshint output is only on one file, not a list of them.
webpack provides this.emitWarning
function, which you can use to emit jshint output. When using it, it will output which file the output is associated with.
For example for my custom reporter:
WARNING in ./src/index.js
jshint report:
line 20 col 17 Missing 'new' prefix when invoking a constructor. (W064)
let Store = StoreSnapshot();
⚠ 1 warning
Here's my custom reporter: https://gist.github.com/Dashed/ed941052b82fd7694320
I like GNU like message and I would like to be able to output message like this
Example:
But right now I can not do that :(