gulp-textlint
gulp-textlint
npm i gulp-textlint
gulp-textlint

gulp-textlint

The pluggable natural language linter for text and markdown.

by textlint

12.2.4 (see all)License:MITTypeScript:Not Found
npm i gulp-textlint
Readme

gulp-textlint

gulp plugin for textlint.

Usage

var gulp = require('gulp');
var textlint = require('gulp-textlint');

gulp.task('textlint', function() {
  return gulp.src('./path/to/src/**/*.md')
    .pipe(textlint());
});

As you can path to config for textlint. Like below.

...
gulp.task('textlint', function() {
  return gulp.src('./path/to/src/**/*.md')
    .pipe(textlint({
      formatterName: "pretty-error"
    });
});

When you would like to change target dynamically you should use yargs.

e.g.

var argv = require('yargs').argv;

gulp.task('textlint', function() {
  var src = argv.t;
  return gulp.src(src)
    .pipe(textlint());
});

gulp.task('watch', function() {
  var src = argv.t;
  if (src) {
    gulp.watch(src, ['textlint']);
  }
});

Then execute watch task with -t option.

gulp watch -t "./path/to/*.md"

Example

Please See example/.

Downloads/wk

23

GitHub Stars

2.5K

LAST COMMIT

7mos ago

MAINTAINERS

3

CONTRIBUTORS

70

OPEN ISSUES

72

OPEN PRs

5
VersionTagPublished
12.2.4
latest
10hrs ago
12.0.0-beta.3
beta
2yrs ago
5.1.0-alpha.0f2fd6f9
canary
4yrs ago
5.0.0-next.2
next
5yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate