Skip to content

Commit 142ac17

Browse files
committed
fix: add flat-map-polyfill to dependencies and use in no-undefined-types in place of (unpublished and large) core-js
1 parent 8254e70 commit 142ac17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dependencies": {
88
"comment-parser": "^0.5.5",
99
"debug": "^4.1.1",
10+
"flat-map-polyfill": "^0.3.8",
1011
"jsdoctypeparser": "4.0.0",
1112
"lodash": "^4.17.11"
1213
},
@@ -22,7 +23,6 @@
2223
"babel-plugin-add-module-exports": "^1.0.2",
2324
"babel-plugin-istanbul": "^5.1.4",
2425
"chai": "^4.2.0",
25-
"core-js": "^3.1.4",
2626
"eslint": "^5.14.1",
2727
"eslint-config-canonical": "^17.1.1",
2828
"gitdown": "^2.5.8",

src/rules/noUndefinedTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// eslint-disable-next-line import/no-unassigned-import
2-
import 'core-js/stable/array/flat-map';
2+
import 'flat-map-polyfill';
33
import _ from 'lodash';
44
import {parse as parseType, traverse} from 'jsdoctypeparser';
55
import iterateJsdoc, {parseComment} from '../iterateJsdoc';

0 commit comments

Comments
 (0)