Skip to content

Commit

Permalink
fix(lint): ran lint:fix on file
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbcom committed Dec 30, 2023
1 parent 2b4da1a commit d740853
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const consistentDeviceConfigPropertyOrder: JSONCRule.RuleModule = {
.filter(
(c) =>
c.loc?.start.line
=== prev.property.loc.end.line,
=== prev.property.loc.end.line,
);
prev.comments.trailing.push(
...wronglyAttributedComments,
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -161,8 +161,7 @@ export const consistentDeviceConfigPropertyOrder: JSONCRule.RuleModule = {
schema: [],
messages: {
"parameter-ordering":
`For consistency, config param properties should follow the order ${
paramInfoPropertyOrder.map((p) => `"${p}"`).join(", ")
`For consistency, config param properties should follow the order ${paramInfoPropertyOrder.map((p) => `"${p}"`).join(", ")
}.`,
},
type: "problem",
Expand Down

0 comments on commit d740853

Please sign in to comment.