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

Establish a list of ESLint rules that are relevant for component authoring #1

Open
Princesseuh opened this issue Feb 11, 2022 · 0 comments

Comments

@Princesseuh
Copy link
Owner

Princesseuh commented Feb 11, 2022

Currently, the only special ESLint rule is a error on console.log (but not console.error and others), the reason for that being that they'll leak in the user's console when using the component which, in my opinion is undesirable

In this issue, I'd love to figure out if there's any other settings we should have for component authoring. This is part of a bigger issue of establish a "code" to respect when authoring Astro components that are meant for distribution

Basically, is there any code that a developer should avoid putting in their project because it would cause issue when users use it and if so, what ESLint rules can we add to catch this?

@Princesseuh Princesseuh pinned this issue Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant