Skip to content

Commit

Permalink
fix: add core-js/fn/array/flat-map import to no-undefined-types t…
Browse files Browse the repository at this point in the history
…o ensure `flatMap` support

Babel expects such to be polyfilled through core-js
  • Loading branch information
brettz9 committed Jun 21, 2019
1 parent 40ffa50 commit 2b41cb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-istanbul": "^5.1.4",
"chai": "^4.2.0",
"core-js": "^3.1.4",
"eslint": "^5.14.1",
"eslint-config-canonical": "^17.1.1",
"gitdown": "^2.5.8",
Expand Down
2 changes: 2 additions & 0 deletions src/rules/noUndefinedTypes.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// eslint-disable-next-line import/no-unassigned-import
import 'core-js/fn/array/flat-map';
import _ from 'lodash';
import {parse as parseType, traverse} from 'jsdoctypeparser';
import iterateJsdoc, {parseComment} from '../iterateJsdoc';
Expand Down

0 comments on commit 2b41cb8

Please sign in to comment.