Skip to content

Commit

Permalink
Apply react/jsx-first-prop-new-line
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Jan 8, 2020
1 parent fabebb6 commit a3e3ff4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
"react/jsx-key": "off",
"react/no-unknown-property": "off",
"unicorn/prevent-abbreviations": "error",
"react/jsx-first-prop-new-line": "error",
"import/extensions": [
"error",
"never",
Expand Down
3 changes: 2 additions & 1 deletion source/features/edit-readme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ async function init(): Promise<void | false> {
}

readmeHeader.after(
<a href={pathnameParts.join('/')}
<a
href={pathnameParts.join('/')}
className="Box-btn-octicon btn-octicon float-right"
aria-label="Edit this file"
>
Expand Down
3 changes: 2 additions & 1 deletion source/features/faster-pr-diff-options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ function createWhitespaceButton(): HTMLElement {
}

return (
<a href={`?${String(searchParameters)}`}
<a
href={`?${String(searchParameters)}`}
data-hotkey="d w"
className={`btn btn-sm btn-outline tooltipped tooltipped-s ${isHidingWhitespace ? 'bg-gray-light text-gray-light' : ''}`}
aria-label={`${isHidingWhitespace ? 'Show' : 'Hide'} whitespace in diffs`}
Expand Down
3 changes: 2 additions & 1 deletion source/features/forked-to.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ async function init(): Promise<void> {
const forkCounter = (await elementReady('.social-count[href$="/network/members"]'))!;
if (forks.length === 1) {
forkCounter.before(
<a href={`/${forks[0]}`}
<a
href={`/${forks[0]}`}
className="btn btn-sm float-left rgh-forked-button"
title={`Open your fork to ${forks[0]}`}
>
Expand Down
4 changes: 3 additions & 1 deletion source/features/mark-unread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ function getNotification(notification: Notification): Element {
<span className={`type-icon type-icon-state-${state}`}>
{stateIcons[type][state]()}
</span>
<a className="css-truncate-target js-notification-target js-navigation-open list-group-item-link" href={url}
<a
className="css-truncate-target js-notification-target js-navigation-open list-group-item-link"
href={url}
data-hovercard-url={`${url}/hovercard?show_subscription_status=true`}
>
{title}
Expand Down

0 comments on commit a3e3ff4

Please sign in to comment.