Skip to content

Commit

Permalink
Update packages/eslint-config-base/rules/style.js
Browse files Browse the repository at this point in the history
Enforce multiline if the expression spans multiple lines.

Co-authored-by: Dustin Falgout <dustin@falgout.us>
  • Loading branch information
PareshRadadiya and lots0logs authored Aug 21, 2020
1 parent 924cbd1 commit 7e4412a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-config-base/rules/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ module.exports = {
// require multiline ternary
// https://eslint.org/docs/rules/multiline-ternary
// TODO: enable?
'multiline-ternary': ['error', 'always'],
'multiline-ternary': ['error', 'always-multiline'],

// require a capital letter for constructors
'new-cap': ['error', {
Expand Down

0 comments on commit 7e4412a

Please sign in to comment.