1.0.3 • Published 6 years ago

gulp-filename-hint v1.0.3

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

gulp-filename-hint

A gulp plugin for linting filenames.

Install

npm install --save-dev gulp-filename-hint

Usage

var gulp = require('gulp');
var filenameHint = require('gulp-filename-hint');

gulp.task('test', function () {
  return gulp.src('src/*.js')
    .pipe(filenameHint());
});

API

filenameHint(options)

options.regExp

Type: RegExp

Default: undefined

Only RegExp's with begin (^) and end ($) boundaries should be used.

gulp.task('test', function () {
  return gulp.src('src/*.js')
    .pipe(filenameHint({regExp: /^\w*$/}));
});

options.whiteList

Type: Array

Default: []

An array with allowed filenames. All names here will be automatically interpreted as valid ones.

gulp.task('test', function () {
  return gulp.src('src/*.js')
    .pipe(filenameHint({
      regExp: /^\w*$/,
      whiteList: ['README.md']
    }));
});

caiogondim.com  ·  GitHub @caiogondim  ·  Twitter @caio_gondim

1.0.3

6 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago