Skip to content

Commit

Permalink
multiline-ternary: always-multiline
Browse files Browse the repository at this point in the history
  • Loading branch information
KristjanESPERANTO committed Feb 6, 2024
1 parent 22441fd commit 81be12b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@stylistic/indent": ["error", "tab"],
"@stylistic/indent-binary-ops": ["error", "tab"],
"@stylistic/max-len": "off",
"@stylistic/multiline-ternary": ["error", "always-multiline"],
"@stylistic/newline-per-chained-call": ["error", { "ignoreChainWithDepth": 1 }],
"@stylistic/no-mixed-operators": "off",
"@stylistic/no-tabs": "off",
Expand Down
12 changes: 5 additions & 7 deletions format/location-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ const formatLocationFilter = (stops, addresses, poi) => {
if (stops && addresses && poi) {
return 'ALL';
}
return (stops
? 'S'
: '') + (addresses
? 'A'
: '') + (poi
? 'P'
: '');
return (
(stops ? 'S' : '')
+ (addresses ? 'A' : '')
+ (poi ? 'P' : '')
);
};

export {
Expand Down

0 comments on commit 81be12b

Please sign in to comment.