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

Replace let with const in README.md snippets #281

Closed
wants to merge 1 commit into from

Conversation

zmillman
Copy link

@zmillman zmillman commented May 4, 2024

Most TS & JS linters (e.g. ESLint) enforce that const is used for any variables which don't get reassigned. This updates the README snippets so that copying them doesn't trigger lint errors.

Most TS & JS linters (e.g. ESLint) enforce that `const` is used for any variables which don't get reassigned. This updates the README snippets so that copying them doesn't trigger lint errors.
@sergiodxa
Copy link
Owner

Thanks but I prefer let over const, changing to const if your linter enforce it should be a quick automated fix, it could even happen on save or on paste based on your config.

@sergiodxa sergiodxa closed this May 5, 2024
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

Successfully merging this pull request may close these issues.

2 participants