From 3bca8e8e3f8b5aa6cabcfaf2cd577260d684d6ce Mon Sep 17 00:00:00 2001 From: Zack Baldwin Date: Sun, 31 Dec 2023 19:38:03 +0000 Subject: [PATCH] chore(lint): fix linespace --- .../src/rules/consistent-device-config-property-order.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/eslint-plugin/src/rules/consistent-device-config-property-order.ts b/packages/eslint-plugin/src/rules/consistent-device-config-property-order.ts index 1ace0f740e95..28d530ffa930 100644 --- a/packages/eslint-plugin/src/rules/consistent-device-config-property-order.ts +++ b/packages/eslint-plugin/src/rules/consistent-device-config-property-order.ts @@ -80,8 +80,8 @@ export const consistentDeviceConfigPropertyOrder: JSONCRule.RuleModule = { 0, withRanges[0].property.loc.start.column, ); - // TODO: Change to .toSorted() once on node 20. - const desiredOrder = [...propsWithComments].sort((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(