Skip to content

Commit

Permalink
Fix indent more code consistently (CheckerNetwork#1580)
Browse files Browse the repository at this point in the history
* fix indent all code consistently, fix switch case

* cover type indentation too
  • Loading branch information
juliangruber authored May 29, 2024
1 parent 26c2c1b commit 42259a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"max-len": ["error", {
"code": 115,
"ignoreUrls": true
}]
}],
"indent": "off",
"@typescript-eslint/indent": ["error", 2]
},
"ignorePatterns": [
"assets/",
Expand Down Expand Up @@ -72,8 +74,7 @@
"react/jsx-first-prop-new-line": "error",
"react/jsx-max-props-per-line": ["error", { "maximum": 1, "when": "multiline" }],
"react/jsx-indent-props": ["error", "first"],
"react/jsx-closing-bracket-location": "error",
"indent": ["error", 2]
"react/jsx-closing-bracket-location": "error"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion renderer/src/typings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ declare global {
onEarningsChanged: (callback: (value: number) => void) => () => void;
onReadyToUpdate: (callback: () => void) => () => void;
onTransactionUpdate:
(callback: (allTransactions: (FILTransaction|FILTransactionProcessing)[]) => void) => () => void;
(callback: (allTransactions: (FILTransaction|FILTransactionProcessing)[]) => void) => () => void;
onBalanceUpdate: (callback: (balance: string) => void) => () => void;
onScheduledRewardsUpdate: (callback: (balance: string) => void) => () => void;
};
Expand Down

0 comments on commit 42259a0

Please sign in to comment.