Skip to content

Commit cf4f0c7

Browse files
authored
feat: fix eslint settings & linting (#310)
1 parent 2d6f4b7 commit cf4f0c7

36 files changed

+537
-460
lines changed

.eslintrc.json

Lines changed: 0 additions & 41 deletions
This file was deleted.

app/[lang]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default function IndexPage({ params: { lang } }: any) {
8585
</div>
8686
}
8787
actions={
88-
<Link href={`/projects`} className="flex items-center gap-2 group">
88+
<Link href={'/projects'} className="flex items-center gap-2 group">
8989
<Button className="w-full sm:w-auto">
9090
<div className="flex items-center gap-1">
9191
<span className="text-base font-medium uppercase">

app/[lang]/programs/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export const ProgramPageContent = ({ lang }: any) => {
122122

123123
useEffect(() => {
124124
if (sectionsRef.current === null)
125-
sectionsRef.current = document.querySelectorAll(`div[data-section]`)
125+
sectionsRef.current = document.querySelectorAll('div[data-section]')
126126
if (!activeId) setActiveId(ProgramSections?.[0] ?? '')
127127

128128
const handleScroll = () => {

app/[lang]/resources/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const ResourceNav = ({ lang }: LangProps['params']) => {
101101

102102
useEffect(() => {
103103
if (sectionsRef.current === null)
104-
sectionsRef.current = document.querySelectorAll(`div[data-section]`)
104+
sectionsRef.current = document.querySelectorAll('div[data-section]')
105105
if (!activeId) setActiveId('get-involved')
106106

107107
const handleScroll = () => {

components/breadcrumbs.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import NextLink from "next/link"
1+
import NextLink from 'next/link'
22

33
interface Props {
44
path: string[]
@@ -17,8 +17,8 @@ const Breadcrumbs = ({ path }: Props) => {
1717
)
1818
}
1919
return (
20-
<NextLink key={index} href={`/${item}`} className={`capitalize`}>
21-
{item === "projects" ? "All Projects" : item}
20+
<NextLink key={index} href={`/${item}`} className={'capitalize'}>
21+
{item === 'projects' ? 'All Projects' : item}
2222
<span className="mx-2">/</span>
2323
</NextLink>
2424
)

components/project/project-filters-bar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default function ProjectFiltersBar({ lang }: LangProps['params']) {
128128
projects,
129129
})
130130
setSearchQuery('') // clear input
131-
router.push(`/projects`)
131+
router.push('/projects')
132132
}
133133

134134
useDebounce(

components/project/project-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const ProjectList = ({ lang }: LangProps['params']) => {
6262
useEffect(() => {
6363
setIsMounted(true)
6464
if (typeof window !== 'undefined') {
65-
sectionsRef.current = document.querySelectorAll(`div[data-section]`)
65+
sectionsRef.current = document.querySelectorAll('div[data-section]')
6666

6767
const handleScroll = () => {
6868
if (isManualScroll) return

data/events/devcon-7.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ export const events = [
103103
],
104104
event: {
105105
title: 'Introduction to Cryptography, New and Old',
106-
description: `Data can be useful, and also dangerous. This talk will raise questions and concerns that data enthusiasts might want to consider.`,
106+
description:
107+
'Data can be useful, and also dangerous. This talk will raise questions and concerns that data enthusiasts might want to consider.',
107108
url: 'https://app.devcon.org/schedule/R3JC8U',
108109
date: 'Tuesday, Nov 12',
109110
time: '4:30 PM - 4:55 PM',

data/projects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,5 @@ export const projects: ProjectInterface[] = [
112112
postQuantumCryptography,
113113
machinaIo,
114114
plasmaFold,
115-
vOPRF
115+
vOPRF,
116116
]

data/projects/anon-klub.ts

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,47 @@ import {
33
ProjectContent,
44
ProjectInterface,
55
ProjectStatus,
6-
} from "@/lib/types"
6+
} from '@/lib/types'
77

88
const content: ProjectContent = {
99
en: {
10-
tldr: "A mechanism for anonymous proof of Ethereum address ownership.",
11-
description: `AnonKlub is a tool designed for Ethereum developers that allows for anonymous proof of Ethereum address ownership. It doesn't directly address the public observability of Ethereum transactions but provides a workaround for privacy. Users can prepare a list of Ethereum addresses, sign a message from an address they own, and use that signature to generate a zero-knowledge proof. This proof enables users to perform actions anonymously that would typically require ownership of an address from the initial list. Use cases include anonymous NFT minting and Discord verification for DAOs without disclosing the public address.`,
10+
tldr: 'A mechanism for anonymous proof of Ethereum address ownership.',
11+
description:
12+
"AnonKlub is a tool designed for Ethereum developers that allows for anonymous proof of Ethereum address ownership. It doesn't directly address the public observability of Ethereum transactions but provides a workaround for privacy. Users can prepare a list of Ethereum addresses, sign a message from an address they own, and use that signature to generate a zero-knowledge proof. This proof enables users to perform actions anonymously that would typically require ownership of an address from the initial list. Use cases include anonymous NFT minting and Discord verification for DAOs without disclosing the public address.",
1213
},
1314
}
1415

1516
export const anonKlub: ProjectInterface = {
16-
id: "anon-klub",
17+
id: 'anon-klub',
1718
category: ProjectCategory.APPLICATION,
18-
section: "archived",
19+
section: 'archived',
1920
content,
2021
projectStatus: ProjectStatus.INACTIVE,
21-
image: "anonklub.svg",
22-
name: "AnonKlub",
22+
image: 'anonklub.svg',
23+
name: 'AnonKlub',
2324
links: {
24-
github: "https://github.com/anonklub",
25-
website: "https://anonklub.github.io",
25+
github: 'https://github.com/anonklub',
26+
website: 'https://anonklub.github.io',
2627
},
2728
extraLinks: {
2829
learn: [
2930
{
3031
label:
31-
"Sunsetting Blog Post: Reflections on Our Journey in Privacy-Preserving Solutions",
32-
url: "https://mirror.xyz/privacy-scaling-explorations.eth/7VTKFVR4PM75WtNnBzuQSBZW-UYoJOsnzBBQmB9MWbY",
32+
'Sunsetting Blog Post: Reflections on Our Journey in Privacy-Preserving Solutions',
33+
url: 'https://mirror.xyz/privacy-scaling-explorations.eth/7VTKFVR4PM75WtNnBzuQSBZW-UYoJOsnzBBQmB9MWbY',
3334
},
3435
],
3536
},
3637
tags: {
3738
keywords: [
38-
"Transaction privacy",
39-
"Anonymity/privacy",
40-
"Social",
41-
"Identity",
42-
"Voting/governance",
39+
'Transaction privacy',
40+
'Anonymity/privacy',
41+
'Social',
42+
'Identity',
43+
'Voting/governance',
4344
],
44-
themes: ["build", "play"],
45-
types: ["Infrastructure/protocol", "Prototype", "Proof of concept"],
46-
builtWith: ["circom", "snarkjs", "halo2"],
45+
themes: ['build', 'play'],
46+
types: ['Infrastructure/protocol', 'Prototype', 'Proof of concept'],
47+
builtWith: ['circom', 'snarkjs', 'halo2'],
4748
},
4849
}

0 commit comments

Comments
 (0)