Skip to content

Commit 2b41cb8

Browse files
committed
fix: add core-js/fn/array/flat-map import to no-undefined-types to ensure flatMap support
Babel expects such to be polyfilled through core-js
1 parent 40ffa50 commit 2b41cb8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"babel-plugin-add-module-exports": "^1.0.2",
2323
"babel-plugin-istanbul": "^5.1.4",
2424
"chai": "^4.2.0",
25+
"core-js": "^3.1.4",
2526
"eslint": "^5.14.1",
2627
"eslint-config-canonical": "^17.1.1",
2728
"gitdown": "^2.5.8",

src/rules/noUndefinedTypes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// eslint-disable-next-line import/no-unassigned-import
2+
import 'core-js/fn/array/flat-map';
13
import _ from 'lodash';
24
import {parse as parseType, traverse} from 'jsdoctypeparser';
35
import iterateJsdoc, {parseComment} from '../iterateJsdoc';

0 commit comments

Comments
 (0)