Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eunnbi committed Dec 22, 2024
1 parent ed57d36 commit d1057ab
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default async function EditorLayout({
problem = { ...contestProblem.problem, order: contestProblem.order }

contest = await fetcher(`contest/${contestId}`).json()
contest ? (contest.status = 'ongoing') : null // TODO: refactor this after change status interactively
contest && (contest.status = 'ongoing') // TODO: refactor this after change status interactively
} else {
problem = await fetcher(`problem/${problemId}`).json()
}
Expand Down
1 change: 0 additions & 1 deletion apps/frontend/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const config: CodegenConfig = {
// this assumes that all your source files are in a top-level `src/` directory - you might need to adjust this to your file structure
documents: ['./**/*.{ts,tsx}'],
generates: {
// eslint-disable-next-line @typescript-eslint/naming-convention
'./__generated__/': {
preset: 'client',
plugins: [],
Expand Down
6 changes: 2 additions & 4 deletions apps/frontend/components/shadcn/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ export const Calendar = ({
...classNames
}}
components={{
// eslint-disable-next-line @typescript-eslint/no-unused-vars
IconLeft: ({ ...props }) => <ChevronLeftIcon className="h-4 w-4" />,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
IconRight: ({ ...props }) => <ChevronRightIcon className="h-4 w-4" />
IconLeft: () => <ChevronLeftIcon className="h-4 w-4" />,
IconRight: () => <ChevronRightIcon className="h-4 w-4" />
}}
{...props}
/>
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/graphql/notice/queries.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { gql } from '@apollo/client'
import { gql } from '@generated'

const GET_NOTICE = gql(`
query GetNotice($groupId: Int!, $noticeId: Int!) {
Expand Down
2 changes: 0 additions & 2 deletions apps/frontend/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { withSentryConfig } = require('@sentry/nextjs')
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true'
})
Expand Down
1 change: 0 additions & 1 deletion apps/frontend/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import typography from '@tailwindcss/typography'
import type { Config } from 'tailwindcss'
import animate from 'tailwindcss-animate'
Expand Down
2 changes: 0 additions & 2 deletions apps/frontend/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ export default defineConfig({
globals: true,
setupFiles: ['./vitest.setup.ts'],
env: {
// eslint-disable-next-line @typescript-eslint/naming-convention
NEXT_PUBLIC_BASEURL: 'https://test.com/api',
// eslint-disable-next-line @typescript-eslint/naming-convention
NEXTAUTH_URL: 'https://test.com/next-auth/api/auth'
}
},
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default eslintTS.config(
},
{
files: ['apps/frontend/**/*.tsx'],
ignores: ['apps/frontend/components/ui/*.tsx'],
ignores: ['apps/frontend/components/shadcn/*.tsx'],
rules: {
'react/function-component-definition': [
'error',
Expand Down
1 change: 0 additions & 1 deletion knip.ts → knip.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type { KnipConfig } from 'knip'

const config: KnipConfig = {
Expand Down

0 comments on commit d1057ab

Please sign in to comment.