Skip to content

Commit

Permalink
chore: Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kevee committed Sep 11, 2020
1 parent 74815f8 commit 5c4fd46
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const checkFiles = () => {
if (!parsedLine) {
return
}
const { name, values } = parsedLine
const { name } = parsedLine
if (
(name.search('margin') > -1 || name.search('padding') > -1) &&
(change.content.search('px') > -1 ||
Expand Down
1 change: 0 additions & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const path = require('path')
const { DateTime } = require('luxon')
const csv = require('./src/utilities/csv')
const createSchemaCustomization = require('./src/utilities/schema')

Expand Down
2 changes: 0 additions & 2 deletions gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const React = require('react')

exports.onRenderBody = ({ setPostBodyComponents, setBodyAttributes }) => {
setBodyAttributes({
className: 'no-js',
Expand Down
4 changes: 1 addition & 3 deletions src/components/common/statistic.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ const Statistic = ({ title, value, suffix, children, subelement }) => (
<NumberOrNotReported value={value} />
{suffix}
</div>
{children && (
<div className={statisticStyles.info}>{children && children}</div>
)}
{children && <div className={statisticStyles.info}>{children}</div>}
</div>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/tablet-disclosure.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const TabletDisclosureHeader = ({ isOpen, setIsOpen, children, className }) => (
const TabletDisclosureContent = ({ isOpen, className, children }) => (
<div
className={classnames(
className && className,
className,
isOpen && TabletDisclosureStyles.opened,
TabletDisclosureStyles.content,
)}
Expand Down
4 changes: 2 additions & 2 deletions src/components/pages/race/dashboard/state-separate.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const StateSeparate = ({ state }) => {
raceNotes = cautionNotes(stateData, raceNotes)

const groupedRaceNotes = [...new Set(Object.values(raceNotes))]
.filter(value => value && value)
.filter(value => value)
.reverse()

let ethnicityNotes = {
Expand All @@ -57,7 +57,7 @@ const StateSeparate = ({ state }) => {
ethnicityNotes = cautionNotes(stateData, ethnicityNotes)

const groupedEthnicityNotes = [...new Set(Object.values(ethnicityNotes))]
.filter(value => value && value)
.filter(value => value)
.reverse()

if (!stateData.anyPosData && !stateData.anyDeathData) {
Expand Down
4 changes: 1 addition & 3 deletions src/components/pages/race/paragraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import classnames from 'classnames'
import paragraphStyle from './paragraph.module.scss'

const CrdtParagraph = ({ children, className }) => (
<p className={classnames(paragraphStyle.paragraph, className && className)}>
{children}
</p>
<p className={classnames(paragraphStyle.paragraph, className)}>{children}</p>
)

export default CrdtParagraph
2 changes: 1 addition & 1 deletion src/components/search/search-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const SearchResult = ({
{publishDate && author && (
<span dangerouslySetInnerHTML={{ __html: ' &middot; ' }} />
)}
{author && author}
{author}
</div>
</DetailText>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/data/longtermcare.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const LongTermCarePage = ({ data }) => (
</LongContent>
</Container>
<TableauChart
id="ltc-1"
id="ltc-2"
height={525}
mobileHeight={450}
viewUrl="https://public.tableau.com/views/WebsiteCharts-CTPLong-TermCare/deathsbydate?:language=en&:display_count=y&:origin=viz_share_link"
Expand Down Expand Up @@ -132,7 +132,7 @@ const LongTermCarePage = ({ data }) => (
</DetailText>
</Container>
<TableauChart
id="ltc-2"
id="ltc-3"
height={1300}
viewUrl="https://public.tableau.com/views/WebsiteCharts-CTPLong-TermCare/SummaryTable?:language=en&:display_count=y&:origin=viz_share_link"
viewUrlMobile="https://public.tableau.com/views/WebsiteCharts-CTPLong-TermCaremobile/SummaryTable?:language=en&:display_count=y&:origin=viz_share_link"
Expand Down

0 comments on commit 5c4fd46

Please sign in to comment.