Skip to content

Commit 61ce2d7

Browse files
committed
Fixed linting issues.
1 parent 649b830 commit 61ce2d7

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

index.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
'use strict';
1+
"use strict";
22

3-
const through = require('through2');
4-
const PluginError = require('plugin-error');
5-
const File = require('vinyl');
3+
const through = require("through2");
4+
const PluginError = require("plugin-error");
5+
const File = require("vinyl");
66

7-
const doxdox = require('doxdox');
7+
const doxdox = require("doxdox");
88

9-
const PLUGIN_NAME = 'gulp-doxdox';
9+
const PLUGIN_NAME = "gulp-doxdox";
1010

1111
module.exports = function (config) {
1212

@@ -22,7 +22,7 @@ module.exports = function (config) {
2222

2323
} else if (file.isStream()) {
2424

25-
this.emit('error', new PluginError(PLUGIN_NAME, 'Streams not supported!'));
25+
this.emit("error", new PluginError(PLUGIN_NAME, "Streams not supported!"));
2626

2727
} else if (file.isBuffer()) {
2828

@@ -35,15 +35,15 @@ module.exports = function (config) {
3535
}, function (callback) {
3636

3737
doxdox.parseInputs(files, {
38-
'description': config.description || '',
39-
'ignore': (config.ignore || '').split(/\s*,\s*/),
40-
'layout': (config.layout || 'markdown').toLowerCase(),
41-
'parser': (config.parser || 'dox').toLowerCase(),
42-
'title': config.title || 'Untitled Project'
38+
"description": config.description || "",
39+
"ignore": (config.ignore || "").split(/\s*,\s*/),
40+
"layout": (config.layout || "markdown").toLowerCase(),
41+
"parser": (config.parser || "dox").toLowerCase(),
42+
"title": config.title || "Untitled Project"
4343
}).then(function (content) {
4444

4545
this.push(new File({
46-
path: 'docs.md',
46+
path: "docs.md",
4747
contents: new Buffer(content)
4848
}));
4949

test/specs/main.js

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
/*global describe, it*/
22

3-
'use strict';
3+
"use strict";
44

5-
const fs = require('fs');
6-
const es = require('event-stream');
7-
const should = require('should');
5+
const fs = require("fs");
6+
const es = require("event-stream");
7+
const should = require("should");
88

9-
const File = require('vinyl');
9+
const File = require("vinyl");
1010

11-
const doxdox = require('../../');
11+
const doxdox = require("../../");
1212

13-
describe('gulp-doxdox', function () {
13+
describe("gulp-doxdox", function () {
1414

1515
const expectedFile = new File({
16-
path: 'test/fixtures/lodash.html',
17-
contents: fs.readFileSync('test/fixtures/lodash.html')
16+
path: "test/fixtures/lodash.html",
17+
contents: fs.readFileSync("test/fixtures/lodash.html")
1818
});
1919

20-
it('should produce expected file via buffer', function (done) {
20+
it("should produce expected file via buffer", function (done) {
2121

2222
const srcFile = new File({
23-
path: 'test/fixtures/lodash.js',
24-
contents: fs.readFileSync('test/fixtures/lodash.js')
23+
path: "test/fixtures/lodash.js",
24+
contents: fs.readFileSync("test/fixtures/lodash.js")
2525
});
2626

2727
const stream = doxdox();
2828

29-
stream.on('error', function (err) {
29+
stream.on("error", function (err) {
3030
should.exist(err);
3131
done(err);
3232
});
3333

34-
stream.on('data', function (newFile) {
34+
stream.on("data", function (newFile) {
3535

3636
should.exist(newFile);
3737
should.exist(newFile.contents);
@@ -48,21 +48,21 @@ describe('gulp-doxdox', function () {
4848

4949
});
5050

51-
it('should error on stream', function (done) {
51+
it("should error on stream", function (done) {
5252

5353
const srcFile = new File({
54-
path: 'test/fixtures/lodash.js',
55-
contents: fs.createReadStream('test/fixtures/lodash.js')
54+
path: "test/fixtures/lodash.js",
55+
contents: fs.createReadStream("test/fixtures/lodash.js")
5656
});
5757

5858
const stream = doxdox();
5959

60-
stream.on('error', function (err) {
60+
stream.on("error", function (err) {
6161
should.exist(err);
6262
done();
6363
});
6464

65-
stream.on('data', function (newFile) {
65+
stream.on("data", function (newFile) {
6666
newFile.contents.pipe(es.wait(function (err, data) {
6767
done(err);
6868
}));

0 commit comments

Comments
 (0)