Skip to content

Commit

Permalink
resolves yargalot#25
Browse files Browse the repository at this point in the history
  • Loading branch information
jameelmoses committed Apr 17, 2018
1 parent da88335 commit 5366005
Show file tree
Hide file tree
Showing 6 changed files with 5,097 additions and 2,408 deletions.
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"env": {
"node": true
},
"parserOptions": {
"ecmaVersion": 6
},
"extends": "eslint:recommended",
"rules": {
"semi": [2, "always"],
Expand Down
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/* eslint-disable no-console */

var del = require('del');
var gulp = require('gulp');
var rename = require('gulp-rename');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var nodeunit = require('gulp-nodeunit');
var runSequence = require('run-sequence');
var accessSniff = require('access-sniff');
var access = require('./index.js');

gulp.task('clean', function(cb) {
Expand All @@ -14,7 +15,6 @@ gulp.task('clean', function(cb) {
], cb);
});


gulp.task('lint', function() {
return gulp.src(['./libs/*.js', 'gulpfile.js'])
.pipe(jshint())
Expand Down
13 changes: 5 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@
// ------------------------

// through2 is a thin wrapper around node transform streams
const _ = require('lodash');
const gutil = require('gulp-util');
const through = require('through2');
const accessSniff = require('access-sniff');
const StringDecoder = require('string_decoder').StringDecoder

const PluginError = gutil.PluginError;
const StringDecoder = require('string_decoder').StringDecoder;
const PluginError = require('plugin-error');

// Consts
const PLUGIN_NAME = 'gulp-accessibility';
Expand All @@ -21,7 +18,7 @@ var accessSniffPlugin = function(options) {
return through.obj(function(file, enc, callback) {

if (file.isNull()) {
cb(null, file);
callback(null, file);
}

if (file.isStream()) {
Expand All @@ -47,7 +44,7 @@ var accessSniffPlugin = function(options) {

});

}
};

accessSniffPlugin.report = function(options) {
const gulpOptions = options ? options : {};
Expand All @@ -56,7 +53,7 @@ accessSniffPlugin.report = function(options) {
return through.obj(function(file, enc, callback) {

if (file.isNull()) {
cb(null, file);
callback(null, file);
}

if (file.isStream()) {
Expand Down
Loading

0 comments on commit 5366005

Please sign in to comment.