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

Commit cc8eba2

Browse files
authored
Merge pull request #14 from neogeek/greenkeeper/eslint-4.2.0
chore(package): update eslint to version 4.2.0
2 parents 3eba062 + 5be6032 commit cc8eba2

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
@@ -62,20 +62,20 @@ const parser = (content, filename) =>
6262
'empty': !method.description.full && !method.tags.length,
6363
'params': method.tags.filter(tag =>
6464
tag.type === 'param' && !tag.name.match(/\./))
65-
.map(tag => {
65+
.map(tag => {
6666

67-
if (tag.optional) {
67+
if (tag.optional) {
6868

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

71-
}
71+
}
7272

73-
return formatStringForParam(tag.name);
73+
return formatStringForParam(tag.name);
7474

75-
})
76-
.join(', ')
77-
.replace(/\], \[/g, ', ')
78-
.replace(', [', '[, '),
75+
})
76+
.join(', ')
77+
.replace(/\], \[/g, ', ')
78+
.replace(', [', '[, '),
7979
'tags': {
8080
'example': method.tags.filter(tag => tag.type === 'example')
8181
.map(tag => tag.string),
@@ -94,10 +94,10 @@ const parser = (content, filename) =>
9494
})),
9595
'return': method.tags.filter(tag =>
9696
tag.type === 'return' || tag.type === 'returns')
97-
.map(tag => ({
98-
'types': tag.types,
99-
'description': tag.description
100-
}))
97+
.map(tag => ({
98+
'types': tag.types,
99+
'description': tag.description
100+
}))
101101
}
102102
}))
103103
.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)