Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 874053d

Browse files
GaryJonesmarkelog
authored andcommitted
Preset: WordPress requireBlocksOnNewLines
See https://make.wordpress.org/core/handbook/best-practices/coding-standards/javascript/: `if`/`else`/`for`/`while`/`try` blocks should always use braces, and always go on multiple lines Closes gh-1959
1 parent 0318aa5 commit 874053d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

presets/wordpress.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
"requireCapitalizedComments": {
1919
"allExcept": ["global", "exported", "jshint", "eslint", "jslint"]
2020
},
21-
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties"
21+
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
22+
"requireBlocksOnNewline": true
2223
}

0 commit comments

Comments
 (0)