no-restricted-imports: message is ignored for star-imports when importNames is defined #11580
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
Tell us about your environment
v5.15.3
(but the same happens onv5.16.0
as well)v8.15.1
npmYarn Version:1.15.2
What parser (default, Babel-ESLint, etc.) are you using?
@typescript-eslint/parser
but it's reproducible with the default one as wellPlease show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
What did you expect to happen?
The provided message should be printed.
What actually happened? Please include the actual, raw output from ESLint.
The custom message is not printed, only the default one:
This behavior is even validated by tests. As you can see, the
message
field is specified but it's not used in the output.Are you willing to submit a pull request to fix this bug?
Yes
The text was updated successfully, but these errors were encountered: