Skip to content

Commit 300cd7f

Browse files
committed
Drop array.prototype.flat
1 parent 7d71310 commit 300cd7f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
"eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8"
101101
},
102102
"dependencies": {
103-
"array.prototype.flat": "^1.3.1",
104103
"debug": "^3.2.7",
105104
"doctrine": "^2.1.0",
106105
"eslint-import-resolver-node": "^0.3.7",

src/rules/group-exports.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import docsUrl from '../docsUrl';
2-
import flat from 'array.prototype.flat';
32

43
const { values } = Object;
4+
const flat = Function.bind.bind(Function.prototype.call)(Array.prototype.flat);
55

66
const meta = {
77
type: 'suggestion',

0 commit comments

Comments
 (0)