Skip to content
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

[developer-preview] New rule to avoid dev preview #1721

Open
florianeichin opened this issue Feb 13, 2024 · 1 comment
Open

[developer-preview] New rule to avoid dev preview #1721

florianeichin opened this issue Feb 13, 2024 · 1 comment
Labels
package: eslint-plugin Angular-specific TypeScript rules triage This issue needs to be looked at and categorized by a maintainer

Comments

@florianeichin
Copy link

We would love to see the linter complaining on angular developer preview features, as they should not be used in our plattform for stability reasons. Is there a chance to get that?

@florianeichin florianeichin added package: eslint-plugin Angular-specific TypeScript rules triage This issue needs to be looked at and categorized by a maintainer labels Feb 13, 2024
@json-derulo
Copy link
Contributor

For all TypeScript functions, this could work somewhat reliably by checking the @developerPreview JSDoc tags, assuming that Angular consistently sets this JSDoc tag on their features which are in developer preview. This would work in a generic way. Though I can imagine this could be costly operations with performance implications.

However there might be functionality in developer preview which isn't used in TypeScript context, such as Control flow, experimental builders, experimental test runners, ... For this kind of functionality, IMHO it doesn't make sense to implement such a rule, as it needs to be implemented and kept up-to-date manually.

Would you be fine with a solution which exclusively works for TypeScript?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: eslint-plugin Angular-specific TypeScript rules triage This issue needs to be looked at and categorized by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants