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 33 */
44
55import { dom , roles } from 'aria-query' ;
6- import fromEntries from 'object.fromentries' ;
76
87import JSXAttributeMock from './JSXAttributeMock' ;
98import JSXElementMock from './JSXElementMock' ;
109
1110import type { JSXAttributeMockType } from './JSXAttributeMock' ;
1211import type { JSXElementMockType } from './JSXElementMock' ;
1312
13+ const { fromEntries } = Object ;
14+
1415const domElements = [ ...dom . keys ( ) ] ;
1516const roleNames = [ ...roles . keys ( ) ] ;
1617
Original file line number Diff line number Diff line change 22 * @flow
33 */
44
5- import entries from 'object.entries' ;
65import flatMap from 'array.prototype.flatmap' ;
7- import fromEntries from 'object.fromentries' ;
6+
7+ const { fromEntries, entries } = Object ;
88
99type ESLintTestRunnerTestCase = {
1010 code : string ,
Original file line number Diff line number Diff line change 8787 "jsx-ast-utils" : " ^3.3.5" ,
8888 "language-tags" : " ^1.0.9" ,
8989 "minimatch" : " ^3.1.2" ,
90- "object.fromentries" : " ^2.0.8" ,
9190 "safe-regex-test" : " ^1.0.3"
9291 },
9392 "peerDependencies" : {
Original file line number Diff line number Diff line change 11import editDistance from 'damerau-levenshtein' ;
2- import fromEntries from 'object.fromentries' ;
2+
3+ const { fromEntries } = Object ;
34
45// Minimum edit distance to be considered a good suggestion.
56const THRESHOLD = 2 ;
You can’t perform that action at this time.
0 commit comments