Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
DinerIsmail committed Jan 16, 2024
1 parent b79dfb2 commit 459fdd6
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
"allowFinally": true
}
],
"@typescript-eslint/no-base-to-string": 0
"@typescript-eslint/no-base-to-string": 0,
"sonarjs/cognitive-complexity": 0
}
}
1 change: 0 additions & 1 deletion components/admin/listing-form/ListingForm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable sonarjs/cognitive-complexity */
import { memo, useEffect, useMemo } from 'react'
import { Formik, Form, Field, FieldProps, useFormikContext } from 'formik'
import ReactSelect from 'react-select'
Expand Down
1 change: 0 additions & 1 deletion components/admin/listing-form/ListingFormSimplified.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable sonarjs/cognitive-complexity */
import { memo, useEffect, useMemo } from 'react'
import { Formik, Form, Field, FieldProps, useFormikContext } from 'formik'
import ReactSelect from 'react-select'
Expand Down
1 change: 0 additions & 1 deletion components/admin/permissions-list/PermissionsList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable sonarjs/cognitive-complexity */
import { memo, useCallback, useMemo } from 'react'
import { Formik, Form, Field, FieldProps } from 'formik'
import isEqual from 'lodash/isEqual'
Expand Down
1 change: 0 additions & 1 deletion components/admin/permissions-table/PermissionsTable.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable sonarjs/cognitive-complexity */
import { memo } from 'react'
import { Badge, Stack, Table, Tbody, Td, Th, Thead, Tr } from '@chakra-ui/react'

Expand Down
1 change: 0 additions & 1 deletion middleware.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable sonarjs/cognitive-complexity */
import { NextResponse } from 'next/server'
import type { NextRequest } from 'next/server'

Expand Down
1 change: 0 additions & 1 deletion pages/admin/overview.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { NextSeo } from 'next-seo'
import Link from 'next/link'
import { useRouter } from 'next/router'
import {
Box,
Expand Down
1 change: 0 additions & 1 deletion pages/api/auth/inviteUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import InviteEmail from '@components/emails/InviteEmail'

sgMail.setApiKey(process.env.SENDGRID_API_KEY)

// eslint-disable-next-line sonarjs/cognitive-complexity
const handler = async (req: NextApiRequest, res: NextApiResponse) => {
try {
const session = await getServerSession(req, res, authOptions)
Expand Down
1 change: 0 additions & 1 deletion pages/api/listings/[id].ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable sonarjs/cognitive-complexity */
import type { NextApiRequest, NextApiResponse } from 'next'
import formidable from 'formidable'
import { getServerSession } from 'next-auth/next'
Expand Down
1 change: 0 additions & 1 deletion pages/api/webs/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable sonarjs/cognitive-complexity */
import type { Web } from '@prisma/client'
import { Prisma } from '@prisma/client'
import type { NextApiRequest, NextApiResponse } from 'next'
Expand Down

0 comments on commit 459fdd6

Please sign in to comment.