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

main.js uses 4 spaces for indents #39

Open
peterVG opened this issue Mar 6, 2021 · 1 comment
Open

main.js uses 4 spaces for indents #39

peterVG opened this issue Mar 6, 2021 · 1 comment

Comments

@peterVG
Copy link

peterVG commented Mar 6, 2021

It it Javascript best practice to use 2 spaces for indents as enforced by most linters (eg. ESlint, StandardJS, Prettifier). Since this is a beginner tutorial, it's helpful to start us off with good habits.

@Sn3akyP3t3
Copy link

ESlint documentation acknowledges the existence of other acceptable style guides per https://eslint.org/docs/latest/rules/indent. Its probably just best then to adopt whichever of those acceptable styles makes you happy or just adopt the one that your linting tool prefers.

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

2 participants