Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
alan2207 committed Aug 25, 2024
1 parent ee90683 commit c52f133
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
19 changes: 9 additions & 10 deletions apps/nextjs-app/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module.exports = {
'generators/*',
],
extends: ['eslint:recommended', 'next/core-web-vitals'],
plugins: ['check-file'],
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
Expand Down Expand Up @@ -127,26 +126,26 @@ module.exports = {
'@typescript-eslint/no-empty-function': ['off'],
'@typescript-eslint/no-explicit-any': ['off'],
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
},
},
{
plugins: ['check-file'],
files: ['src/**/*'],
rules: {
'check-file/filename-naming-convention': [
'error',
{
'src/!(pages)/*.{ts,tsx}': 'KEBAB_CASE',
'**/*.{ts,tsx}': 'KEBAB_CASE',
},
{
ignoreMiddleExtensions: true,
},
],
},
},
{
plugins: ['check-file'],
files: ['src/**/*'],
ignorePatterns: ['**/__tests__/**/*', 'src/app/**/*'],
rules: {
'check-file/folder-naming-convention': [
'error',
{
'**/*': 'KEBAB_CASE',
'!(src/app)/**/*': 'KEBAB_CASE',
'!(**/__tests__)/**/*': 'KEBAB_CASE',
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { ErrorBoundary } from 'react-error-boundary';

import { ContentLayout } from '@/components/layouts';
import { Spinner } from '@/components/ui/spinner';

import { Comments } from '@/features/comments/components/comments';
import { useDiscussion } from '@/features/discussions/api/get-discussion';
import { DiscussionView } from '@/features/discussions/components/discussion-view';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import {
HydrationBoundary,
QueryClient,
} from '@tanstack/react-query';
import { cookies } from 'next/headers';

import DiscussionPage from '@/app/app/discussions/[discussionId]/page';
import { getInfiniteCommentsQueryOptions } from '@/features/comments/api/get-comments';
import { getDiscussionQueryOptions } from '@/features/discussions/api/get-discussion';

import DiscussionPage from '@/app/app/discussions/[discussionId]/page';
import { cookies } from 'next/headers';

const preloadData = async (discussionId: string) => {
const queryClient = new QueryClient();

Expand Down

0 comments on commit c52f133

Please sign in to comment.