-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bug: [no-deprecated] Rule doesn't report on call inside default export #10327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Comments
Probably allowing checking nodes that are inside default exports will make it work correctly: |
wszydlak
added a commit
to wszydlak/typescript-eslint
that referenced
this issue
Nov 14, 2024
3 tasks
wszydlak
added a commit
to wszydlak/typescript-eslint
that referenced
this issue
Nov 14, 2024
wszydlak
added a commit
to wszydlak/typescript-eslint
that referenced
this issue
Nov 14, 2024
wszydlak
added a commit
to wszydlak/typescript-eslint
that referenced
this issue
Nov 14, 2024
wszydlak
added a commit
to wszydlak/typescript-eslint
that referenced
this issue
Nov 14, 2024
wszydlak
added a commit
to wszydlak/typescript-eslint
that referenced
this issue
Nov 15, 2024
wszydlak
added a commit
to wszydlak/typescript-eslint
that referenced
this issue
Nov 16, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=5.6.2&fileType=.tsx&code=PQKhAIAEBMFMAcBOsDGBDALra5oHtwA7PDcAVwGdZwMALASwvADMzCUN69DwRgAoVu07dwADwAUASnABvfuHDIMZRD1kBfANz8N-fsGDh0ZAOa0M-SVJ0GjxUifOXYY%2BHkSk4zNGQA2pNZaQA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6Jge1oBNFjpEZAIb5E3dFETRoHaJHBgAviEVA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
Repro Code
ESLint Config
tsconfig
Expected Result
I expected that line
export default x();
will show error about using deprecated function, this worked properly witheslint-plugin-deprecation
.Actual Result
Line
export default x();
did not show linting error.Additional Info
Additional demo: https://stackblitz.com/edit/tvzmwg-17xps4?file=src%2Findex.ts
The text was updated successfully, but these errors were encountered: