Skip to content

Commit e3c7f36

Browse files
fa93hwsbrettz9
authored andcommitted
add object expression support
1 parent 16b0288 commit e3c7f36

File tree

3 files changed

+18
-35
lines changed

3 files changed

+18
-35
lines changed

src/iterateJsdoc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@ export default function iterateJsdoc (iterator, ruleConfig) {
385385
return {
386386
ArrowFunctionExpression: checkJsdoc,
387387
FunctionDeclaration: checkJsdoc,
388-
FunctionExpression: checkJsdoc
388+
FunctionExpression: checkJsdoc,
389+
ObjectExpression: checkJsdoc
389390
};
390391
}
391392

test/eslint/getJSDocComment.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

test/rules/assertions/checkIndentation.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,22 @@ export default {
1717
message: 'There must be no indentation.'
1818
}
1919
]
20+
},
21+
{
22+
code: `
23+
/**
24+
* foo
25+
*
26+
* @param bar
27+
* baz
28+
*/
29+
var a = {}
30+
`,
31+
errors: [
32+
{
33+
message: 'There must be no indentation.'
34+
}
35+
]
2036
}
2137
],
2238
valid: [

0 commit comments

Comments
 (0)