Skip to content

Commit c52f133

Browse files
committed
fix linting
1 parent ee90683 commit c52f133

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

apps/nextjs-app/.eslintrc.cjs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ module.exports = {
1111
'generators/*',
1212
],
1313
extends: ['eslint:recommended', 'next/core-web-vitals'],
14-
plugins: ['check-file'],
1514
overrides: [
1615
{
1716
files: ['**/*.ts', '**/*.tsx'],
@@ -127,26 +126,26 @@ module.exports = {
127126
'@typescript-eslint/no-empty-function': ['off'],
128127
'@typescript-eslint/no-explicit-any': ['off'],
129128
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
129+
},
130+
},
131+
{
132+
plugins: ['check-file'],
133+
files: ['src/**/*'],
134+
rules: {
130135
'check-file/filename-naming-convention': [
131136
'error',
132137
{
133-
'src/!(pages)/*.{ts,tsx}': 'KEBAB_CASE',
138+
'**/*.{ts,tsx}': 'KEBAB_CASE',
134139
},
135140
{
136141
ignoreMiddleExtensions: true,
137142
},
138143
],
139-
},
140-
},
141-
{
142-
plugins: ['check-file'],
143-
files: ['src/**/*'],
144-
ignorePatterns: ['**/__tests__/**/*', 'src/app/**/*'],
145-
rules: {
146144
'check-file/folder-naming-convention': [
147145
'error',
148146
{
149-
'**/*': 'KEBAB_CASE',
147+
'!(src/app)/**/*': 'KEBAB_CASE',
148+
'!(**/__tests__)/**/*': 'KEBAB_CASE',
150149
},
151150
],
152151
},

apps/nextjs-app/src/app/app/discussions/[discussionId]/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { ErrorBoundary } from 'react-error-boundary';
55

66
import { ContentLayout } from '@/components/layouts';
77
import { Spinner } from '@/components/ui/spinner';
8-
98
import { Comments } from '@/features/comments/components/comments';
109
import { useDiscussion } from '@/features/discussions/api/get-discussion';
1110
import { DiscussionView } from '@/features/discussions/components/discussion-view';

apps/nextjs-app/src/app/public/discussions/[discussionId]/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ import {
33
HydrationBoundary,
44
QueryClient,
55
} from '@tanstack/react-query';
6+
import { cookies } from 'next/headers';
67

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

10-
import DiscussionPage from '@/app/app/discussions/[discussionId]/page';
11-
import { cookies } from 'next/headers';
12-
1312
const preloadData = async (discussionId: string) => {
1413
const queryClient = new QueryClient();
1514

0 commit comments

Comments
 (0)