1.3.7 • Published 6 years ago

gulp-ts-spellcheck v1.3.7

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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
1.3.7

6 years ago

1.3.6

6 years ago

1.3.4

6 years ago

1.3.2

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.12

6 years ago

1.1.11

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago