Skip to content

Commit 705370a

Browse files
authored
fix(eslint-plugin): correct message for no-unsafe-unary-minus (typescript-eslint#7998)
fix: correct message for `no-unsafe-unary-minus`
1 parent 4c3e704 commit 705370a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: packages/eslint-plugin/src/rules/no-unsafe-unary-minus.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export default util.createRule<Options, MessageIds>({
1515
requiresTypeChecking: true,
1616
},
1717
messages: {
18-
unaryMinus: 'Invalid type "{{type}}" of template literal expression.',
18+
unaryMinus:
19+
'Argument of unary negation should be assignable to number | bigint but is {{type}} instead.',
1920
},
2021
schema: [],
2122
},

0 commit comments

Comments
 (0)