Skip to content

Commit

Permalink
fix(lint): compatibility of ESLint plugin with Node.js 18 (#6580)
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbcom authored Jan 1, 2024
1 parent 9549a04 commit 86b137e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export const consistentDeviceConfigPropertyOrder: JSONCRule.RuleModule = {
0,
withRanges[0].property.loc.start.column,
);

const desiredOrder = propsWithComments.toSorted((a, b) =>
// TODO: Change to .toSorted() once on node 20.
const desiredOrder = [...propsWithComments].sort((a, b) =>
a.index - b.index
).map((prop) => {
const start = Math.min(
Expand Down

0 comments on commit 86b137e

Please sign in to comment.