Skip to content
Merged

1.6.3 #140

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
57 changes: 31 additions & 26 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,45 @@ const compat = new FlatCompat({
});

const eslintConfig = [
// ✅ 테스트 및 설정 파일 무시
// 1️⃣ [중요] 전역 무시 설정: 이 객체에는 'ignores' 외에 아무것도 넣지 마세요.
{
ignores: [
'**/*.test.tsx',
'**/*.test.ts',
'jest.config.ts',
'jest.setup.ts',
"**/node_modules/",
".next/",
"public/",
"dist/",
"supabase/",
"test/",
"**/*.test.tsx",
"**/*.test.ts",
"**/__tests__/**", // 폴더 통째로 무시하려면 이 패턴 추가
"jest.config.ts",
"jest.setup.ts",
],
rules: {
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
}
},
// ✅ 기존 설정

// 2️⃣ 기존 Next.js 설정 확장
...compat.config({
extends: ["next/core-web-vitals", "next/typescript"],
rules: {
'react-hooks/exhaustive-deps': 'off',
"react-hooks/exhaustive-deps": "off",
},
ignorePatterns: [
'node_modules/',
'.next/',
'public/',
'dist/',
'test/',
'supabase/',
],
}),

// 3️⃣ 모든 파일에 적용할 공통 규칙
{
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"], // 적용 대상을 명시적으로 지정
rules: {
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
},
];

export default eslintConfig;
export default eslintConfig;
10 changes: 5 additions & 5 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const customJestConfig = {
testEnvironment: 'jest-environment-jsdom',
testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
'^@/(.*)$': '<rootDir>/src/$1',
},
transform: {
'^.+\\.(ts|tsx)$': 'babel-jest',
Expand All @@ -18,10 +18,10 @@ const customJestConfig = {
'node_modules/(?!(lucide-react)/)', // lucide-react는 변환 예외
],
collectCoverageFrom: [
'app/**/*.{js,jsx,ts,tsx}',
'!app/**/_*.{js,jsx,ts,tsx}',
'!app/**/layout.{js,jsx,ts,tsx}',
'!app/**/page.{js,jsx,ts,tsx}',
'src/app/**/*.{js,jsx,ts,tsx}',
'!src/app/**/_*.{js,jsx,ts,tsx}',
'!src/app/**/layout.{js,jsx,ts,tsx}',
'!src/app/**/page.{js,jsx,ts,tsx}',
'!**/*.d.ts',
'!**/node_modules/**',
],
Expand Down
2 changes: 1 addition & 1 deletion middleware.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NextResponse } from 'next/server';
import type { NextRequest } from 'next/server';
import { createServerClient } from '@supabase/ssr';
import { Database } from './app/types/database.types';
import { Database } from './src/app/types/database.types';

export async function middleware(request: NextRequest) {
const isProtectedRoute = request.nextUrl.pathname.startsWith('/admin')
Expand Down
43 changes: 31 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading