palantir/blueprint
ESLint deprecated component usage detector does not handle aliased imports
Chiusa
#6408 aperta il 26 set 2023
Domain: toolingP2Type: bughelp wanted
Metriche repository
- Star
- (20.263 stelle)
- Metriche merge PR
- (Merge medio 43g 10h) (27 PR mergiate in 30 g)
Descrizione
Environment
- Package version(s):
@blueprintjs/eslint-plugin: 5.0.0 - Operating System: Windows 10/11
Steps to reproduce
- Use an aliased import of a deprecated BlueprintJS component somewhere:
import { DateInput as BlueprintDateInput } from "@blueprintjs/datetime";
- Use
"plugin:@blueprintjs/recommended"in your eslintrc file.
Actual behavior
No errors detected.
Expected behavior
A message which tells that the usage of DateInput is deprecated.
71:6 error Usage of DateInput is deprecated, migrate to DateInput3 instead @blueprintjs/no-deprecated-components
The error is properly displayed if we change the aliased import to a non-aliased import.