Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit cc7aff1

Browse files
committed
Merge branch 'master' into hotfix/single-star-comments
2 parents 8b8c90f + cc8eba2 commit cc7aff1

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

index.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,20 @@ const parser = (content, filename) =>
6565
'empty': !method.description.full && !method.tags.length,
6666
'params': method.tags.filter(tag =>
6767
tag.type === 'param' && !tag.name.match(/\./))
68-
.map(tag => {
68+
.map(tag => {
6969

70-
if (tag.optional) {
70+
if (tag.optional) {
7171

72-
return `[${formatStringForParam(tag.name)}]`;
72+
return `[${formatStringForParam(tag.name)}]`;
7373

74-
}
74+
}
7575

76-
return formatStringForParam(tag.name);
76+
return formatStringForParam(tag.name);
7777

78-
})
79-
.join(', ')
80-
.replace(/\], \[/g, ', ')
81-
.replace(', [', '[, '),
78+
})
79+
.join(', ')
80+
.replace(/\], \[/g, ', ')
81+
.replace(', [', '[, '),
8282
'tags': {
8383
'example': method.tags.filter(tag => tag.type === 'example')
8484
.map(tag => tag.string),
@@ -97,10 +97,10 @@ const parser = (content, filename) =>
9797
})),
9898
'return': method.tags.filter(tag =>
9999
tag.type === 'return' || tag.type === 'returns')
100-
.map(tag => ({
101-
'types': tag.types,
102-
'description': tag.description
103-
}))
100+
.map(tag => ({
101+
'types': tag.types,
102+
'description': tag.description
103+
}))
104104
}
105105
}))
106106
.filter(method => !method.empty);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"devDependencies": {
1414
"@neogeek/eslint-config-standards": "^1.15.0",
15-
"eslint": "^3.19.0",
15+
"eslint": "^4.2.0",
1616
"mocha": "^3.4.2"
1717
},
1818
"peerDependencies": {

0 commit comments

Comments
 (0)