Skip to content

Commit 8919c21

Browse files
Fix eslint to properly detect brace-less one-line if
The current config was changed to allow brace-less one-line if, which are not allowed in the guidelines: ``` if (fooo) do_something(); ``` Issue: GDL-10
1 parent 7f6c652 commit 8919c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ module.exports = {
9393
2,
9494
'always'
9595
],
96-
'curly': 1,
96+
'curly': [1, 'all'],
9797
'no-mixed-spaces-and-tabs': 2,
9898
'max-len': [
9999
2,

0 commit comments

Comments
 (0)