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

Set JavasScript indent to two spaces #154

Merged
merged 1 commit into from
May 15, 2021
Merged

Set JavasScript indent to two spaces #154

merged 1 commit into from
May 15, 2021

Conversation

cowboyd
Copy link
Member

@cowboyd cowboyd commented May 15, 2021

Motivation

The convention almost everywhere is to use 2 spaces for indent in JavaScript, however the default in js-mode and js2-mode is 4. All things being equal, we should follow that convention.

Approach

This sets the default to 2 spaces, but still allows it to be overridden. However, most JavaScript projects, if they do not have this default, set their own defaults

The convention almost everywhere is to use 2 spaces for indent in
JavaScript, however the default in js-mode and js2-mode is 4. All
things being equal, we should follow that convention.

This sets the default to 2 spaces, but still allows it to be
overridden. However, most JavaScript projects, if they do not have
this default, set their own defaults
@cowboyd cowboyd merged commit 79c7acb into release May 15, 2021
@cowboyd cowboyd deleted the javascript-indent branch May 15, 2021 18:11
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.

1 participant