Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 54d80c0

Browse files
committedNov 6, 2024·
chore: enable no-constant-binary-expression as it becames recommanded default in new ESLint
1 parent 2e997ec commit 54d80c0

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed
 

‎.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ module.exports = {
6161
rules: {
6262
'no-extra-boolean-cast': 'error',
6363
'no-irregular-whitespace': 'error',
64+
'no-constant-binary-expression': 'error',
6465
'no-empty': 'error',
6566
'@typescript-eslint/no-empty-object-type': 'off',
6667
'@typescript-eslint/no-require-imports': 'off',

‎packages/connect-popup/e2e/tests/methods.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ filteredFixtures.forEach(f => {
6262
// - fixture require different device than prev fixture, or
6363
// - fixture is retried
6464
// FIXME: always reset for now, due to flaky tests with bridge bug
65+
// eslint-disable-next-line no-constant-binary-expression
6566
if (true || JSON.stringify(device) !== JSON.stringify(f.device) || retry) {
6667
device = f.device;
6768
await TrezorUserEnvLink.stopBridge();

‎packages/suite/src/components/wallet/Pagination.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const Pagination = ({
9999
<PageItem
100100
key={i}
101101
data-testid={`@wallet/accounts/pagination/${i}`}
102-
data-test-activated={i === currentPage ?? 'true'}
102+
data-test-activated={i === currentPage}
103103
onClick={() => onPageSelected(i)}
104104
$isActive={i === currentPage}
105105
>

‎packages/suite/src/views/dashboard/PortfolioCard/PortfolioCard.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ export const PortfolioCard = memo(() => {
7777
}
7878

7979
const isWalletEmpty = !discoveryStatus && isDeviceEmpty;
80-
const isWalletLoading = discoveryStatus?.status === 'loading' ?? false;
81-
const isWalletError = discoveryStatus?.status === 'exception' ?? false;
80+
const isWalletLoading = discoveryStatus?.status === 'loading';
81+
const isWalletError = discoveryStatus?.status === 'exception';
8282
const showGraphControls =
8383
!isWalletEmpty && !isWalletLoading && !isWalletError && !dashboardGraphHidden;
8484

0 commit comments

Comments
 (0)
Please sign in to comment.