Skip to content

Commit 34b647f

Browse files
committed
Ban and fix trailing spaces.
1 parent dd076d7 commit 34b647f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"no-lonely-if": 2,
1616
"max-len": [2, 120],
1717
"no-else-return": 2,
18+
"no-trailing-spaces": 2,
1819
"new-cap": 2,
1920
"no-empty": 2,
2021
"consistent-return": 0,

lib/infer/membership.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports = function () {
110110
comment.name = inferModuleName(currentModule || comment);
111111
return;
112112
}
113-
113+
114114
/*
115115
* Test whether identifiers start with a module export (`exports` or `module.exports`),
116116
* and if so replace those identifiers with the name of the current module.
@@ -150,7 +150,7 @@ module.exports = function () {
150150

151151
var path = comment.context.ast;
152152
var identifiers;
153-
153+
154154
/*
155155
* Deal with an oddity of espree: the jsdoc comment is attached to a different
156156
* node in the two expressions `a.b = c` vs `a.b = function () {}`.
@@ -238,7 +238,7 @@ module.exports = function () {
238238
}
239239
inferMembershipFromIdentifiers(comment, identifiers, scope);
240240
}
241-
241+
242242
// var function Foo(){ function bar(){} return { bar: bar }; }
243243
if (n.FunctionDeclaration.check(path.node) &&
244244
n.BlockStatement.check(path.parent.node) &&

test/lib/infer/membership.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ test('inferMembership - explicit', function (t) {
162162
memberof: 'Foo',
163163
scope: 'instance'
164164
}, 'inferMembership - lends, instance, function');
165-
165+
166166
t.deepEqual(_.pick(evaluate(function () {
167167
/** Foo */
168168
function Foo() {
@@ -176,7 +176,7 @@ test('inferMembership - explicit', function (t) {
176176
memberof: 'Foo',
177177
scope: 'static'
178178
}, 'inferMembership - revealing, static, function');
179-
179+
180180
t.equal(evaluate(function () {
181181
lend(/** @lends Foo */{});
182182
/** Test */

0 commit comments

Comments
 (0)