File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 3
3
*/
4
4
5
5
import { dom , roles } from 'aria-query' ;
6
- import fromEntries from 'object.fromentries' ;
7
6
8
7
import JSXAttributeMock from './JSXAttributeMock' ;
9
8
import JSXElementMock from './JSXElementMock' ;
10
9
11
10
import type { JSXAttributeMockType } from './JSXAttributeMock' ;
12
11
import type { JSXElementMockType } from './JSXElementMock' ;
13
12
13
+ const { fromEntries } = Object ;
14
+
14
15
const domElements = [ ...dom . keys ( ) ] ;
15
16
const roleNames = [ ...roles . keys ( ) ] ;
16
17
Original file line number Diff line number Diff line change 2
2
* @flow
3
3
*/
4
4
5
- import entries from 'object.entries' ;
6
5
import flatMap from 'array.prototype.flatmap' ;
7
- import fromEntries from 'object.fromentries' ;
6
+
7
+ const { fromEntries, entries } = Object ;
8
8
9
9
type ESLintTestRunnerTestCase = {
10
10
code : string ,
Original file line number Diff line number Diff line change 87
87
"jsx-ast-utils" : " ^3.3.5" ,
88
88
"language-tags" : " ^1.0.9" ,
89
89
"minimatch" : " ^3.1.2" ,
90
- "object.fromentries" : " ^2.0.8" ,
91
90
"safe-regex-test" : " ^1.0.3"
92
91
},
93
92
"peerDependencies" : {
Original file line number Diff line number Diff line change 1
1
import editDistance from 'damerau-levenshtein' ;
2
- import fromEntries from 'object.fromentries' ;
2
+
3
+ const { fromEntries } = Object ;
3
4
4
5
// Minimum edit distance to be considered a good suggestion.
5
6
const THRESHOLD = 2 ;
You can’t perform that action at this time.
0 commit comments