Bug: [no-deprecated] doesn't work on export/re-export statements #11197
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
no-deprecate
won't process re-exports and ignores them completely.Our barrel file contains re-exports from sub-packages, which some are deprecated and thus need to be disabled inline ( e.g. https://github.com/microsoft/fluentui/blob/master/packages/react-components/react-components/src/index.ts#L106 )
Recently we migrated from https://github.com/gund/eslint-plugin-deprecation to official
no-deprecate
rule, but it appears the feature parity is not 100%.Example 1:
All following APIs contain
@deprecated
pragma but nothing is being reportedExample 2:
Wrong report for implicit inline
no-deprecate
Reproduction Repository Link
https://github.com/microsoft/fluentui
Repro Steps
yarn install
yarn nx run react-components:lint
NOTE: we use
ESLINT_USE_FLAT_CONFIG=false
under the hoodVersions
@typescript-eslint/eslint-plugin
8.32.0
@typescript-eslint/parser
8.32.0
@typescript-eslint/scope-manager
8.32.0
@typescript-eslint/typescript-estree
8.32.0
@typescript-eslint/type-utils
8.32.0
@typescript-eslint/utils
8.32.0
TypeScript
5.3.3
ESLint
9.17.0
node
20
Related issues:
The text was updated successfully, but these errors were encountered: