Skip to content

Commit

Permalink
Merge pull request #291 from SukkaW/style-no-else-after-return
Browse files Browse the repository at this point in the history
style: enable eslint `no-else-after-return`
  • Loading branch information
thysultan committed Apr 24, 2022
2 parents 55c363f + a3e24f3 commit a2fdca8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@
"no-whitespace-before-property": [
"error"
],
"no-else-return": [
"error"
],
"eol-last": [
"error"
],
Expand Down
3 changes: 1 addition & 2 deletions src/Prefixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ export function prefix (value, length, children) {
case 4384: case 3616:
if (children && children.some(function (element, index) { return length = index, match(element.props, /grid-\w+-end/) })) {
return ~indexof(value + (children = children[length].value), 'span') ? value : (MS + replace(value, '-start', '') + value + MS + 'grid-row-span:' + (~indexof(children, 'span') ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ';')
} else {
return MS + replace(value, '-start', '') + value
}
return MS + replace(value, '-start', '') + value
// grid-(row|column)-end
case 4896: case 4128:
return (children && children.some(function (element) { return match(element.props, /grid-\w+-start/) })) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value
Expand Down

0 comments on commit a2fdca8

Please sign in to comment.