Skip to content

Commit 27e6fa8

Browse files
authored
Use tabs for indentation in build tools JSON files per WP Coding Standards (WordPress#4419)
* chore: Update `.editorconfig` to match WordPress' upstream * chore: Use tabs for indentation in `package.json` and `package-lock.json` files * chore: Use tabs for indentation in `.eslines.json` file * chore: Use tabs for indentation in `composer.lock` file
1 parent 9212841 commit 27e6fa8

File tree

5 files changed

+11993
-11988
lines changed

5 files changed

+11993
-11988
lines changed

.editorconfig

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
# http://editorconfig.org
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
# WordPress Coding Standards
5+
# https://make.wordpress.org/core/handbook/coding-standards/
6+
27
root = true
38

49
[*]
5-
indent_style = tab
6-
end_of_line = lf
710
charset = utf-8
8-
trim_trailing_whitespace = true
11+
end_of_line = lf
912
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_style = tab
1015

11-
[{package.json,*.yml}]
16+
[*.yml]
1217
indent_style = space
1318
indent_size = 2
1419

.eslines.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"branches": {
3-
"default": ["downgrade-unmodified-lines"]
4-
},
5-
"processors": {
6-
"downgrade-unmodified-lines": {
7-
"remote": "origin/master",
8-
"rulesNotToDowngrade": ["no-unused-vars"]
9-
}
10-
}
11-
}
2+
"branches": {
3+
"default": ["downgrade-unmodified-lines"]
4+
},
5+
"processors": {
6+
"downgrade-unmodified-lines": {
7+
"remote": "origin/master",
8+
"rulesNotToDowngrade": ["no-unused-vars"]
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)