palantir/blueprint

ESLint deprecated component usage detector does not handle aliased imports

已关闭

#6,408 创建于 2023年9月26日

 (0 条评论) (0 个反应) (0 位负责人)TypeScript (2,167 个派生)batch import
Domain: toolingP2Type: bughelp wanted

仓库指标

星标
 (20,263 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Environment

  • Package version(s): @blueprintjs/eslint-plugin: 5.0.0
  • Operating System: Windows 10/11

Steps to reproduce

  1. Use an aliased import of a deprecated BlueprintJS component somewhere:

import { DateInput as BlueprintDateInput } from "@blueprintjs/datetime";

  1. 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.

贡献者指南