Skip to content

Commit

Permalink
fix(no-undefined-types): avoid flat-map-polyfill entirely; further …
Browse files Browse the repository at this point in the history
…further fix for #366
  • Loading branch information
brettz9 committed Aug 20, 2019
1 parent 8fceb2e commit fd71277
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -7,7 +7,6 @@
"dependencies": {
"comment-parser": "^0.6.2",
"debug": "^4.1.1",
"flat-map-polyfill": "^0.3.8",
"jsdoctypeparser": "5.0.1",
"lodash": "^4.17.15",
"object.entries-ponyfill": "^1.0.1",
Expand Down
3 changes: 1 addition & 2 deletions src/rules/noUndefinedTypes.js
@@ -1,5 +1,4 @@
// eslint-disable-next-line import/no-unassigned-import
import 'flat-map-polyfill/dist/cjs/flat-map';
import _ from 'lodash';
import {parse as parseType, traverse} from 'jsdoctypeparser';
import iterateJsdoc, {parseComment} from '../iterateJsdoc';
Expand Down Expand Up @@ -78,7 +77,7 @@ export default iterateJsdoc(({
);
}

const closureGenericTypes = templateTags.flatMap((tag) => {
const closureGenericTypes = _.flatMap(templateTags, (tag) => {
return jsdocUtils.parseClosureTemplateTag(tag);
});

Expand Down

0 comments on commit fd71277

Please sign in to comment.