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

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

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy