gulp-ts-spellcheck

1.3.7 • Public • Published

gulp-ts-spellcheck

Spellcheck typescript code with gulp

GitHub issues GitHub stars

Travis (.org) Coverage Status

A gulp plugin for spell checking typescript sources.

Installation

Use npm:

npm install -D gulp-ts-spellcheck

Usage

const gulp = require('gulp');
const tsSpellcheck = require('gulp-ts-spellcheck').default;
 
gulp.task('spellcheck', (done) => {
  return gulp.src('src/**/*.ts')
    .on('error', (err) => { done(err); })
    .pipe(tsSpellcheck({/* speller options */}))
    .pipe(tsSpellcheck.report({/* reporter options */}));
});

Configuration

Speller Options

dictionary

string[]: List of words to pass as correct (case-insensitive)

.
.
.
.pipe(tsSpellcheck({
    dictionary:['axios','fs']
}))
.
.
.

Or create a dictionary file dictionary.js:

module.exports=[
    'axios',
    'fs'
];

Then use it in your gulpfile.js:

.pipe(tsSpellcheck({
    dictionary: require('./dictionary')
}))

Contribution

To help when developing run this:

cp ./.githooks/* .git/hooks

/gulp-ts-spellcheck/

    Package Sidebar

    Install

    npm i gulp-ts-spellcheck

    Weekly Downloads

    1

    Version

    1.3.7

    License

    MIT

    Unpacked Size

    1.04 MB

    Total Files

    68

    Last publish

    Collaborators

    • srfrnk