Skip to content
This repository was archived by the owner on May 16, 2020. It is now read-only.

Commit 416e5e4

Browse files
fix(eslint-config-atlauncher): braces around arrow functions when needed
1 parent b0b7833 commit 416e5e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/eslint-config-atlauncher/rules/ecmascript-6.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
rules: {
3-
// always require braces in arrow functions
4-
'arrow-body-style': ['error', 'always'],
3+
// require braces in arrow functions only when more than one line
4+
'arrow-body-style': ['error', 'as-needed'],
55

66
// always require the start of an arrow function to be wrapped in parenthesis
77
'arrow-parens': ['error', 'always'],

0 commit comments

Comments
 (0)