Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierZal committed Jan 2, 2025
1 parent 2b2e014 commit 89c6803
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
12 changes: 1 addition & 11 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,17 +357,7 @@ const config = [
},
},
),
{
files: ['**/*.md'],
language: 'markdown/gfm',
plugins: {
markdown,
},
rules: {
...markdown.configs.recommended.rules,
'markdown/no-html': 'error',
},
},
...markdown.configs.recommended,
packageJson,
]

Expand Down
2 changes: 1 addition & 1 deletion src/decorators/update-devices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const convertToListDeviceData = <T extends DeviceType>(
: Object.entries(newData).filter(
([key]) =>
isUpdateDeviceData(flags, key) &&
Number(BigInt(flags[key]) & BigInt(effectiveFlags)),
Boolean(BigInt(flags[key]) & BigInt(effectiveFlags)),
)
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
return Object.fromEntries(
Expand Down
2 changes: 1 addition & 1 deletion src/services/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export class API implements IAPI {
error: errorMessage?.trim() ?? '',
}),
)
.filter(({ date, error }) => date && error)
.filter(({ date, error }) => Boolean(date && error))
.reverse(),
fromDateHuman: fromDate.toLocaleString(DateTime.DATE_FULL),
nextFromDate: nextToDate.minus({ days: period }).toISODate() ?? '',
Expand Down

0 comments on commit 89c6803

Please sign in to comment.