WordPress.org

Make WordPress Core

Changeset 41835


Ignore:
Timestamp:
10/12/2017 01:57:45 AM (4 years ago)
Author:
pento
Message:

General: Remove .jshintrc and *.json from the 2-space-indent .editorconfig group.

JSON files don't need a particular indent style, this was just inherited from the jQuery .editorconfig, that we based ours on.

package.json is staying in the 2-space-indent group for now, due to npm 3 and 4 having issues. Upgrading to npm 5 will allow us to remove package.json, too.

Props netweb.
Fixes #40946.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.editorconfig

    r32116 r41835  
    1414indent_style = tab
    1515
    16 [{.jshintrc,*.json,*.yml}]
     16[{package.json,*.yml}]
    1717indent_style = space
    1818indent_size = 2
  • trunk/.jshintrc

    r41752 r41835  
    11{
    2   "boss": true,
    3   "curly": true,
    4   "eqeqeq": true,
    5   "eqnull": true,
    6   "es3": true,
    7   "expr": true,
    8   "immed": true,
    9   "noarg": true,
    10   "nonbsp": true,
    11   "onevar": true,
    12   "quotmark": "single",
    13   "trailing": true,
    14   "undef": true,
    15   "unused": true,
     2    "boss": true,
     3    "curly": true,
     4    "eqeqeq": true,
     5    "eqnull": true,
     6    "es3": true,
     7    "expr": true,
     8    "immed": true,
     9    "noarg": true,
     10    "nonbsp": true,
     11    "onevar": true,
     12    "quotmark": "single",
     13    "trailing": true,
     14    "undef": true,
     15    "unused": true,
    1616
    17   "browser": true,
     17    "browser": true,
    1818
    19   "globals": {
    20     "_": false,
    21     "Backbone": false,
    22     "jQuery": false,
    23     "JSON": false,
    24     "wp": false,
    25     "export": false,
    26     "module": false,
    27     "require": false
    28   }
     19    "globals": {
     20        "_": false,
     21        "Backbone": false,
     22        "jQuery": false,
     23        "JSON": false,
     24        "wp": false,
     25        "export": false,
     26        "module": false,
     27        "require": false
     28    }
    2929}
Note: See TracChangeset for help on using the changeset viewer.