Skip to content

Commit

Permalink
Revert "fix lint issues"
Browse files Browse the repository at this point in the history
This reverts commit f1c6f8d.
  • Loading branch information
encryptedDegen committed Dec 21, 2024
1 parent 61ebc01 commit ef4db90
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
5 changes: 0 additions & 5 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"useNumberNamespace": "off",
"useNamingConvention": "off",
"useShorthandArrayType": "off",
"useExplicitLengthCheck": "off",
"useSingleCaseStatement": "off",
"useSelfClosingElements": "off",
"noUnusedTemplateLiteral": "off"
Expand All @@ -76,7 +75,6 @@
"useButtonType": "off",
"useMediaCaption": "off",
"noSvgWithoutTitle": "off",
"noLabelWithoutControl": "off",
"useKeyWithClickEvents": "off",
"noDistractingElements": "off"
},
Expand All @@ -85,11 +83,9 @@
"noEnum": "off",
"noSecrets": "off",
"noProcessEnv": "off",
"noImgElement": "off",
"useExplicitType": "off",
"noNestedTernary": "off",
"useSortedClasses": "off",
"noExportedImports": "off",
"useImportRestrictions": "off",
"useConsistentCurlyBraces": "off",
"noStaticElementInteractions": "off",
Expand All @@ -103,7 +99,6 @@
},
"correctness": {
"all": true,
"noNodejsModules": "off",
"noUnusedVariables": "off",
"useImportExtensions": "off",
"noUndeclaredVariables": "off",
Expand Down
2 changes: 1 addition & 1 deletion src/app/leaderboard/components/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const LeaderboardTable = () => {
<div className='glass-card border-grey mt-1 border-[3px] rounded-xl flex flex-col gap-4 p-1 sm:px-4 sm:py-6 lg:px-8 relative'>
{leaderboard
?.slice(0, chunk * LEADERBOARD_CHUNK_SIZE)
.map((entry: LeaderboardItem) => (
.map((entry: LeaderboardItem, index) => (
<TableRow
key={entry.address}
address={entry.address}
Expand Down
2 changes: 1 addition & 1 deletion src/app/swipe/components/recommended-profiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import SwipeButtons from './swipeButtons'
import UserProfileCard from '#/components/user-profile-card'
import LoadingRecommendedCards from './loading-recommended-cards'
import HalloweenEmoji from 'public/assets/icons/halloween-emoji.svg'
import { trans, useRecommendedProfilesCards } from './useRecommendedProfilesCards'
import { trans, useRecommendedProfilesCards } from './useRescommendedProfilesCards'

const RecommendedCards = () => {
const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const useRecommendedProfilesCards = () => {
)

const bindDragToCards = useDrag(
({ args: [index], down, movement: [mx], direction: [xDir] }) => {
({ args: [index], down, movement: [mx], direction: [xDir], velocity }) => {
if (index !== gone.size) return
const trigger = (mx > 50 && xDir === 1) || (mx < -50 && xDir === -1) // Card has to be moved more than 50px in either direction to trigger the swipe

Expand Down
2 changes: 1 addition & 1 deletion src/components/footer/components/pages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Pages = () => {

return (
<div className='flex flex-wrap w-52 gap-x-8 gap-y-4'>
{footerPages.map((route) => (
{footerPages.map((route, index) => (
<div
className='font-bold hover:scale-110 w-fit transition-transform'
key={`route-${route.href}`}
Expand Down
4 changes: 2 additions & 2 deletions src/components/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export function Search({
{t('search no results')}
</div>
) : (
searchResult.map((result) => (
searchResult.map((result, index) => (
<div
key={result.name}
onClick={() => {
Expand Down Expand Up @@ -259,7 +259,7 @@ export function Search({
{t('search no results')}
</div>
) : (
searchResult.map((result) => (
searchResult.map((result, index) => (
<div
key={result.name}
onClick={() => {
Expand Down

0 comments on commit ef4db90

Please sign in to comment.