From 18437c427daead48523438d3022920f8c29eb27b Mon Sep 17 00:00:00 2001 From: Brian Donovan <1938+eventualbuddha@users.noreply.github.com> Date: Mon, 7 Oct 2019 09:10:59 -0700 Subject: [PATCH] fix: re-add jsx whitespace This was incorrectly removed by eslint-plugin-react v7.15.x due to a bug. It's been fixed in https://github.com/yannickcr/eslint-plugin-react/pull/2437, so this commit updates eslint-plugin-react and re-adds the whitespace. --- package.json | 2 +- src/components/PrecinctTallyReport.tsx | 4 ++-- yarn.lock | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 8fd04b9ff..04e573365 100644 --- a/package.json +++ b/package.json @@ -123,7 +123,7 @@ "eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-prettier": "^3.1.1", - "eslint-plugin-react": "^7.15.1", + "eslint-plugin-react": "^7.16.0", "husky": "^3.0.8", "is-ci-cli": "^1.1.1", "jest-date-mock": "^1.0.7", diff --git a/src/components/PrecinctTallyReport.tsx b/src/components/PrecinctTallyReport.tsx index 53920217d..0a1b96653 100644 --- a/src/components/PrecinctTallyReport.tsx +++ b/src/components/PrecinctTallyReport.tsx @@ -62,14 +62,14 @@ const PrecinctTallyReport = ({ return (

- {precinct.name} {election.title} + {precinct.name} {election.title}{' '} Tally Report

This report should be {reportPurpose}.

- {isPollsOpen ? 'Polls Closed' : 'Polls Opened'} and report printed at: + {isPollsOpen ? 'Polls Closed' : 'Polls Opened'} and report printed at:{' '} {currentDateTime}

diff --git a/yarn.lock b/yarn.lock index 25ac8e1b8..44c71f22f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4401,10 +4401,10 @@ eslint-plugin-react@7.12.4: prop-types "^15.6.2" resolve "^1.9.0" -eslint-plugin-react@^7.15.1: - version "7.15.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.15.1.tgz#db5f8ed66c6ba46922518f08e1df9dac52ccaa49" - integrity sha512-YotSItgMPwLGlr3df44MGVyXnHkmKcpkHTzpte3QwJtocr3nFqCXCuoxFZeBtnT8RHdj038NlTvam3dcAFrMcA== +eslint-plugin-react@^7.16.0: + version "7.16.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.16.0.tgz#9928e4f3e2122ed3ba6a5b56d0303ba3e41d8c09" + integrity sha512-GacBAATewhhptbK3/vTP09CbFrgUJmBSaaRcWdbQLFvUZy9yVcQxigBNHGPU/KE2AyHpzj3AWXpxoMTsIDiHug== dependencies: array-includes "^3.0.3" doctrine "^2.1.0"