[wp-trac] [WordPress Trac] #40946: Update `.editorconfig` and `*.json` files to use tabs for indentation
WordPress Trac
noreply at wordpress.org
Thu Jun 8 06:53:48 UTC 2017
#40946: Update `.editorconfig` and `*.json` files to use tabs for indentation
------------------------------+-----------------
Reporter: netweb | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9
Component: Build/Test Tools | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------
When the `.editorconfig` file was added in [27198] it included the option
to indent `*.json` files with 2 spaces, this was inherited from the jQuery
projects `.editorconfig`
There's no inherent reason^([#hn note])^ to require this, see
https://stackoverflow.com/a/18698771/1911294
Originally discussed here
https://github.com/WordPress/gutenberg/pull/1029#issuecomment-306362413
Note: An existing issue with npm 3 and 4 causes indentation issues, as
such `package.json` needs to remain indented with spaces until WordPress
chooses to use npm 5 as the required minimum.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40946>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list