Format vfiles using a stylish reporter with position output and a summary line.
If the VFile
has contents and a message will have a position then it will print the first erroneous line.
This project was bootstrapped with TSDX.
npm install vfile-reporter-position
See test/index.test.ts
for the example from the screenshot.
Return a stylish report for the given VFile
array.
Files without messages are ignored.
If there are no messages at all, it will return an empty string.
- vfile-reporter: It offers more options but prints the position only as numbers.
- Write tests
- Add options
MIT © Bernhard Berger