diff --git a/krampoline/.eslintrc.cjs b/krampoline/.eslintrc.cjs index 739d6b2..d20bab1 100644 --- a/krampoline/.eslintrc.cjs +++ b/krampoline/.eslintrc.cjs @@ -6,6 +6,8 @@ module.exports = { }, // 권장 규칙 모음(패키지) extends: [ + // 'airbnb-base', + 'plugin:@typescript-eslint/recommended', 'eslint:recommended', 'plugin:react/recommended', 'plugin:react/jsx-runtime', @@ -28,5 +30,15 @@ module.exports = { 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', 'react/prop-types': ['off'], + '@typescript-eslint/explicit-module-boundary-types': 'error', // 모듈 경계에서 명시적 타입 요구 + '@typescript-eslint/no-explicit-any': 'error', // 명시적인 any 타입 사용 금지 + '@typescript-eslint/no-unused-vars': 'error', // 사용되지 않는 변수 금지 }, -}; + settings: { + 'import/resolver': { + node: { + extensions: ['.js', '.jsx', '.ts', '.tsx'], + }, + }, + }; +} diff --git a/krampoline/index.html b/krampoline/index.html index db09242..29092bf 100644 --- a/krampoline/index.html +++ b/krampoline/index.html @@ -9,6 +9,6 @@
- +