- 3가지 테마 모드 구현 (일반, 다크, 시니어) 및 localStorage 저장 - 언어 선택 기능 추가 (한국어, 영어, 일본어) 국기 아이콘 포함 - 전역 테마 관리를 위한 ThemeContext 생성 - 테마별 CSS 변수 및 시니어 모드 접근성 기능 추가 - 로그인/회원가입 페이지에 ThemeSelect, LanguageSelect 컴포넌트 추가 - ThemeProvider 사용하도록 루트 레이아웃 리팩토링 - 다단계 폼 검증을 포함한 인증 페이지 생성 (로그인, 회원가입) - 다국어 지원 대시보드 페이지 추가 - layout, NavigationMenu, i18n/request의 TypeScript 'any' 타입 경고 수정 - 깨끗한 빌드를 위해 미사용 import 및 변수 제거 - .gitignore 업데이트 및 .env.example 추가 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
78 lines
1.9 KiB
JavaScript
78 lines
1.9 KiB
JavaScript
import js from "@eslint/js";
|
|
import nextPlugin from "@next/eslint-plugin-next";
|
|
import tseslint from "@typescript-eslint/eslint-plugin";
|
|
import tsparser from "@typescript-eslint/parser";
|
|
import reactPlugin from "eslint-plugin-react";
|
|
import reactHooksPlugin from "eslint-plugin-react-hooks";
|
|
|
|
const eslintConfig = [
|
|
{
|
|
ignores: [
|
|
".next/**",
|
|
"out/**",
|
|
"build/**",
|
|
"dist/**",
|
|
"node_modules/**",
|
|
"next-env.d.ts",
|
|
],
|
|
},
|
|
js.configs.recommended,
|
|
{
|
|
files: ["**/*.{js,jsx,mjs}"],
|
|
plugins: {
|
|
"@next/next": nextPlugin,
|
|
"react": reactPlugin,
|
|
"react-hooks": reactHooksPlugin,
|
|
},
|
|
rules: {
|
|
...nextPlugin.configs.recommended.rules,
|
|
...nextPlugin.configs["core-web-vitals"].rules,
|
|
},
|
|
},
|
|
{
|
|
files: ["**/*.{ts,tsx}"],
|
|
languageOptions: {
|
|
parser: tsparser,
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
},
|
|
globals: {
|
|
React: "readonly",
|
|
console: "readonly",
|
|
process: "readonly",
|
|
__dirname: "readonly",
|
|
__filename: "readonly",
|
|
Buffer: "readonly",
|
|
localStorage: "readonly",
|
|
window: "readonly",
|
|
document: "readonly",
|
|
HTMLButtonElement: "readonly",
|
|
HTMLInputElement: "readonly",
|
|
},
|
|
},
|
|
plugins: {
|
|
"@typescript-eslint": tseslint,
|
|
"@next/next": nextPlugin,
|
|
"react": reactPlugin,
|
|
"react-hooks": reactHooksPlugin,
|
|
},
|
|
rules: {
|
|
...tseslint.configs.recommended.rules,
|
|
...nextPlugin.configs.recommended.rules,
|
|
...nextPlugin.configs["core-web-vitals"].rules,
|
|
"react/react-in-jsx-scope": "off",
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"@typescript-eslint/no-unused-vars": ["error", {
|
|
"argsIgnorePattern": "^_",
|
|
"varsIgnorePattern": "^_"
|
|
}],
|
|
},
|
|
},
|
|
];
|
|
|
|
export default eslintConfig;
|