Skip to content

Commit

Permalink
enabling rule and fixing the only error
Browse files Browse the repository at this point in the history
  • Loading branch information
kox authored and steveluscher committed Dec 6, 2024
1 parent 3cc4747 commit ad0671a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default [
'@typescript-eslint/only-throw-error': 'off',
'@typescript-eslint/prefer-promise-reject-errors': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/restrict-template-expressions': 'error',
'@typescript-eslint/unbound-method': 'off',
'jest/expect-expect': [
'error',
Expand Down
2 changes: 1 addition & 1 deletion examples/react-app/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default [
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/restrict-template-expressions': 'error',
'react-refresh/only-export-components': [
'warn',
{
Expand Down
2 changes: 1 addition & 1 deletion examples/react-app/src/components/Balance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function Balance({ account }: Props) {
title="Failed to fetch account balance"
/>
<Text>
<Tooltip content={`Could not fetch balance: ${getErrorMessage(error, 'Unknown reason')}`}>
<Tooltip content={<>Could not fetch balance: {getErrorMessage(error, 'Unknown reason')}</>}>
<ExclamationTriangleIcon
color="red"
style={{ height: 16, verticalAlign: 'text-bottom', width: 16 }}
Expand Down

0 comments on commit ad0671a

Please sign in to comment.