Skip to content

Commit fd71277

Browse files
committed
fix(no-undefined-types): avoid flat-map-polyfill entirely; further further fix for #366
1 parent 8fceb2e commit fd71277

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"dependencies": {
88
"comment-parser": "^0.6.2",
99
"debug": "^4.1.1",
10-
"flat-map-polyfill": "^0.3.8",
1110
"jsdoctypeparser": "5.0.1",
1211
"lodash": "^4.17.15",
1312
"object.entries-ponyfill": "^1.0.1",

src/rules/noUndefinedTypes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// eslint-disable-next-line import/no-unassigned-import
2-
import 'flat-map-polyfill/dist/cjs/flat-map';
32
import _ from 'lodash';
43
import {parse as parseType, traverse} from 'jsdoctypeparser';
54
import iterateJsdoc, {parseComment} from '../iterateJsdoc';
@@ -78,7 +77,7 @@ export default iterateJsdoc(({
7877
);
7978
}
8079

81-
const closureGenericTypes = templateTags.flatMap((tag) => {
80+
const closureGenericTypes = _.flatMap(templateTags, (tag) => {
8281
return jsdocUtils.parseClosureTemplateTag(tag);
8382
});
8483

0 commit comments

Comments
 (0)