Skip to content

Commit 2676cbf

Browse files
[eslint config] [base] [breaking] Enables nonblock-statement-body-position rule and adds link to guide
1 parent 8a477f9 commit 2676cbf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1981,7 +1981,7 @@ Other Style Guides
19811981
## Blocks
19821982

19831983
<a name="blocks--braces"></a><a name="16.1"></a>
1984-
- [16.1](#blocks--braces) Use braces with all multi-line blocks.
1984+
- [16.1](#blocks--braces) Use braces with all multi-line blocks. eslint: [`nonblock-statement-body-position`](https://eslint.org/docs/rules/nonblock-statement-body-position)
19851985

19861986
```javascript
19871987
// bad

packages/eslint-config-airbnb-base/rules/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ module.exports = {
354354

355355
// enforce the location of single-line statements
356356
// http://eslint.org/docs/rules/nonblock-statement-body-position
357-
'nonblock-statement-body-position': 'off',
357+
'nonblock-statement-body-position': ['error', 'beside', { overrides: {} }],
358358

359359
// require padding inside curly braces
360360
'object-curly-spacing': ['error', 'always'],

0 commit comments

Comments
 (0)