fix multiline ternary linting

This commit is contained in:
Caleb Roseland 2023-10-04 15:35:36 -05:00
parent 5811b34b75
commit 0bd2ea7faa
2 changed files with 4 additions and 2 deletions

View file

@ -231,7 +231,9 @@ export default function ChannelInfoForm({
const spaceOnTop = otherElementsSize - scrollPosition - AUTOCOMPLETE_ADJUST;
const spaceOnBottom = (workingSpace + scrollPosition) - (otherElementsSize + headerFieldHeight + BOTTOM_AUTOCOMPLETE_SEPARATION);
const autocompletePosition = spaceOnBottom > spaceOnTop ? (otherElementsSize + headerFieldHeight) - scrollPosition : (workingSpace + scrollPosition + AUTOCOMPLETE_ADJUST + keyboardOverlap) - otherElementsSize;
const autocompletePosition = spaceOnBottom > spaceOnTop ?
(otherElementsSize + headerFieldHeight) - scrollPosition :
(workingSpace + scrollPosition + AUTOCOMPLETE_ADJUST + keyboardOverlap) - otherElementsSize;
const autocompleteAvailableSpace = spaceOnBottom > spaceOnTop ? spaceOnBottom : spaceOnTop;
const growDown = spaceOnBottom > spaceOnTop;

View file

@ -185,7 +185,7 @@
],
"multiline-ternary": [
1,
"never"
"always-multiline"
],
"new-cap": 2,
"new-parens": 2,