Skip to content

Commit

Permalink
Revert "Format code with prettier take 2 (#728)" (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
nimzco authored Aug 23, 2024
1 parent e2d3d32 commit dff70e0
Show file tree
Hide file tree
Showing 23 changed files with 245 additions and 302 deletions.
50 changes: 0 additions & 50 deletions .github/workflows/prettier.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"test": "node scripts/test.js",
"lint": "eslint .",
"format": "eslint --fix .",
"prettier": "npx prettier --write \"**/*.{ts,tsx,}\"",
"precommit": "lint-staged",
"predeploy": "npm run build",
"prepare": "husky"
Expand Down
18 changes: 9 additions & 9 deletions src/StaticPages/AboutPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default function AboutPage() {
return (
<Page
narrow
title="About Confs.tech"
htmlTitle="About Confs.tech open source project and team"
title='About Confs.tech'
htmlTitle='About Confs.tech open source project and team'
backButton
>
<p>
Expand All @@ -17,16 +17,16 @@ export default function AboutPage() {
All the data about the conferences is available on{' '}
<Link
external
url="https://github.com/tech-conferences/conference-data"
url='https://github.com/tech-conferences/conference-data'
>
GitHub
</Link>{' '}
and anyone can submit a new event using{' '}
<Link routed url="/conferences/new">
<Link routed url='/conferences/new'>
the form
</Link>{' '}
or by
<Link url="https://github.com/tech-conferences/conference-data">
<Link url='https://github.com/tech-conferences/conference-data'>
sending a pull request.
</Link>{' '}
Confs.tech is a non-profit initiative and we don’t charge for adding a
Expand All @@ -35,15 +35,15 @@ export default function AboutPage() {
<p>
If you want to help us with the website or want to give discounts to
Confs.tech visitors,{' '}
<Link url="mailto:contact@confs.tech">email us.</Link>
<Link url='mailto:contact@confs.tech'>email us.</Link>
</p>
<p>
With{' '}
<span role="img" aria-label="heart">
<span role='img' aria-label='heart'>
❤️
</span>{' '}
– <Twitter handle="cgrail" /> · <Twitter handle="katyaprigara" /> ·{' '}
<Twitter handle="nimz_co" />
– <Twitter handle='cgrail' /> · <Twitter handle='katyaprigara' /> ·{' '}
<Twitter handle='nimz_co' />
</p>
</Page>
)
Expand Down
2 changes: 1 addition & 1 deletion src/StaticPages/NotFoundPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Page } from 'src/components'

export default function NotFoundPage() {
return (
<Page narrow title="Not found" htmlTitle="Page not found | Confs.tech">
<Page narrow title='Not found' htmlTitle='Page not found | Confs.tech'>
<p>This page does not exist.</p>
</Page>
)
Expand Down
22 changes: 11 additions & 11 deletions src/StaticPages/SponsorshipPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export default function SponsorshipPage() {
return (
<Page
narrow
title="Sponsorship"
htmlTitle="Become a sponsor of Confs.tech"
title='Sponsorship'
htmlTitle='Become a sponsor of Confs.tech'
backButton
>
<p>
Expand All @@ -54,7 +54,7 @@ export default function SponsorshipPage() {
<dt>{sponsorshipAvailability[0]}</dt>
<dd>
{sponsorshipAvailability[1] ? (
<Link url="mailto:contact@confs.tech?subject=Sponsorship">
<Link url='mailto:contact@confs.tech?subject=Sponsorship'>
Available
</Link>
) : (
Expand All @@ -75,7 +75,7 @@ export default function SponsorshipPage() {
sponsorship once the donation has been collected.
<br />
We collect money through our{' '}
<Link external url="https://opencollective.com/confstech/contribute">
<Link external url='https://opencollective.com/confstech/contribute'>
OpenCollective account
</Link>
. All funds are used to cover the operation costs related to running
Expand All @@ -86,14 +86,14 @@ export default function SponsorshipPage() {
<h3>How do I get an invoice for my payment?</h3>
<p>
Since you will be paying through our{' '}
<Link external url="https://opencollective.com/confstech/contribute">
<Link external url='https://opencollective.com/confstech/contribute'>
OpenCollective account
</Link>{' '}
you will be able to get a receipt there, directly. You can find the
details on how to do it{' '}
<Link
external
url="https://docs.opencollective.com/help/financial-contributors/receipts"
url='https://docs.opencollective.com/help/financial-contributors/receipts'
>
in their help center.
</Link>
Expand All @@ -107,28 +107,28 @@ export default function SponsorshipPage() {
<h2>Past sponsors</h2>
<p>
Thank you to our past sponsors.
<span role="img" aria-label="heart">
<span role='img' aria-label='heart'>
❤️
</span>
</p>
<ul className={styles.SponsorList}>
<li>
<Link external url="https://www.dotconferences.com/">
<Link external url='https://www.dotconferences.com/'>
dotConferences
</Link>
</li>
<li>
<Link external url="https://devternity.com/">
<Link external url='https://devternity.com/'>
DevTernity
</Link>
</li>
<li>
<Link external url="https://testcon.lt/">
<Link external url='https://testcon.lt/'>
TestCon Europe
</Link>
</li>
<li>
<Link external url="https://bigdataconference.eu/">
<Link external url='https://bigdataconference.eu/'>
BigData Europe
</Link>
</li>
Expand Down
12 changes: 6 additions & 6 deletions src/StaticPages/TeamPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ export default function TeamPage() {

return (
<Page
title="Team Confs.tech"
subtitle="Meet the team behind Confs.tech"
htmlTitle="Team Confs.tech open source project"
title='Team Confs.tech'
subtitle='Meet the team behind Confs.tech'
htmlTitle='Team Confs.tech open source project'
backButton
>
<p>
Expand Down Expand Up @@ -201,7 +201,7 @@ export default function TeamPage() {
<p>
<Link
external
url="https://github.com/tech-conferences/conference-data/issues"
url='https://github.com/tech-conferences/conference-data/issues'
>
Reach out to join our team!
</Link>
Expand All @@ -215,14 +215,14 @@ export default function TeamPage() {
<h3>Confs.tech contributors</h3>
<TeamSection
contributors={confsTechContributors}
contributionsUrlBase="https://github.com/tech-conferences/confs.tech"
contributionsUrlBase='https://github.com/tech-conferences/confs.tech'
/>

<div className={styles.repo}>
<h3>Conference Data contributors</h3>
<TeamSection
contributors={conferenceDataContributors}
contributionsUrlBase="https://github.com/tech-conferences/conference-data"
contributionsUrlBase='https://github.com/tech-conferences/conference-data'
/>
</div>
</>
Expand Down
10 changes: 5 additions & 5 deletions src/components/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ const Alert: React.FC<Props> = ({ children }) => {
<p className={styles.warning}>
<span aria-hidden>
<svg
focusable="false"
aria-hidden="true"
viewBox="0 0 24 24"
data-testid="ReportProblemOutlinedIcon"
focusable='false'
aria-hidden='true'
viewBox='0 0 24 24'
data-testid='ReportProblemOutlinedIcon'
>
<path d="M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"></path>
<path d='M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z'></path>
</svg>
</span>{' '}
<span>{children}</span>
Expand Down
20 changes: 10 additions & 10 deletions src/components/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ export default function App() {
<div className={styles.AppContainer}>
<div className={styles.App}>
<Routes>
<Route path="/pages/:page" element={<Pages />} />
<Route path="/conferences/new" element={<ConferenceForm />} />
<Route path="/past" element={<ConferenceList showPast />} />
<Route path='/pages/:page' element={<Pages />} />
<Route path='/conferences/new' element={<ConferenceForm />} />
<Route path='/past' element={<ConferenceList showPast />} />
<Route
path="/cfp/:topic/:country"
path='/cfp/:topic/:country'
element={<ConferenceList showCFP />}
/>
<Route path="/cfp/:topic/" element={<ConferenceList showCFP />} />
<Route path="/cfp" element={<ConferenceList showCFP />} />
<Route path="/:year/:topic/:country" element={<HandleRedirect />} />
<Route path="/:topic/:country" element={<HandleRedirectOrRender />} />
<Route path="/:topic" element={<ConferenceList />} />
<Route path="/" element={<ConferenceList />} />
<Route path='/cfp/:topic/' element={<ConferenceList showCFP />} />
<Route path='/cfp' element={<ConferenceList showCFP />} />
<Route path='/:year/:topic/:country' element={<HandleRedirect />} />
<Route path='/:topic/:country' element={<HandleRedirectOrRender />} />
<Route path='/:topic' element={<ConferenceList />} />
<Route path='/' element={<ConferenceList />} />
<Route element={<ConferenceList />} />
</Routes>
</div>
Expand Down
24 changes: 12 additions & 12 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,39 @@ const Footer = () => {
<Divider />
<HiddenLinks />
<p className={styles.FooterLinks}>
<Link url="/conferences/new" routed>
<Link url='/conferences/new' routed>
Add a conference
</Link>
<Link routed url="/pages/about">
<Link routed url='/pages/about'>
About Confs.tech
</Link>
<Link routed url="/pages/team">
<Link routed url='/pages/team'>
Our Team
</Link>
<Link routed url="/pages/sponsorships">
<Link routed url='/pages/sponsorships'>
Sponsor
</Link>
<Link url="https://github.com/tech-conferences/confs.tech/" external>
<Link url='https://github.com/tech-conferences/confs.tech/' external>
Confs.tech on GitHub
</Link>
<Link url="https://twitter.com/ConfsTech/" external>
<Link url='https://twitter.com/ConfsTech/' external>
Follow us on Twitter
</Link>
</p>
<p className={styles.FooterLinks}>
<Twitter handle="cgrail" />
<Twitter handle="katyaprigara" />
<Twitter handle="nimz_co" />
<Twitter handle='cgrail' />
<Twitter handle='katyaprigara' />
<Twitter handle='nimz_co' />
</p>
<p>
<img
alt="Sponsor: Search by Algolia"
alt='Sponsor: Search by Algolia'
src={
darkModeEnabled
? '/search-by-algolia-dark.svg'
: '/search-by-algolia.svg'
}
height="20"
height='20'
/>
</p>
</footer>
Expand All @@ -57,7 +57,7 @@ const Footer = () => {

const HiddenLinks = () => {
return (
<div className="visuallyHidden">
<div className='visuallyHidden'>
{Object.keys(TOPICS).map((topic) => {
return (
<p key={topic}>
Expand Down
14 changes: 7 additions & 7 deletions src/components/GithubStar/GithubStar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ const GithubStar = () => {
return (
<>
<Helmet>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<script async defer src='https://buttons.github.io/buttons.js'></script>
</Helmet>

<div className={styles.GithubStar}>
<a
className="github-button"
href="https://github.com/tech-conferences/confs.tech"
data-icon="octicon-star"
data-size="large"
data-show-count="true"
aria-label="Star tech-conferences/confs.tech on GitHub"
className='github-button'
href='https://github.com/tech-conferences/confs.tech'
data-icon='octicon-star'
data-size='large'
data-show-count='true'
aria-label='Star tech-conferences/confs.tech on GitHub'
data-color-scheme={darkModeEnabled ? 'dark' : 'light'}
>
Star
Expand Down
Loading

0 comments on commit dff70e0

Please sign in to comment.