textlint-formatter
textlint output formatter.
Installation
npm install textlint-formatter
Usage
See formatters/.
Currently, you can use "stylish" (defaults), "checkstyle", "compact", "jslint-xml", "json", "junit", "pretty-error", "table", "tap", and "unix".
const createFormatter = createFormatter;const formatter = ;const output = ;console;/*./README.md 1:23 warning Expected a semicolon semi ✖ 1 problem (0 errors, 1 warning)*/
API
declare ;declare ;declare ;
CLI
$ textlint -f json README.md --rule no-todo | textlint-formatter -f pretty-error --stdin
Other formatter
- azu/textlint-formatter-codecov: textlint formatter for codecov json.
- azu/textlint-formatter-lcov: textlint formatter for lcov format
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
MIT