주요 변경사항: - 회원가입 폼에 사업자등록번호 자동 포맷팅 (000-00-00000) - 핸드폰 번호 자동 포맷팅 (010-1111-1111 / 010-111-1111) - 약관 전체 동의 체크박스 추가 및 개별 약관 연동 - 모든 입력 필드에 autocomplete 속성 추가 (브라우저 자동완성 지원) - 회원가입 API 연동 및 백엔드 통신 구현 - LoginPage 폼 태그 추가 및 DOM 경고 수정 - LanguageSelect 언어 변경 시 전체 페이지 새로고침으로 변경 - 다국어 번역 키 추가 (ko, en, ja) 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
83 lines
2.1 KiB
JavaScript
83 lines
2.1 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",
|
|
fetch: "readonly",
|
|
URL: "readonly",
|
|
RequestInit: "readonly",
|
|
Response: "readonly",
|
|
PageTransitionEvent: "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;
|