[typescript + react + eslint + prettier] Missing return type on function

notion image
Missing return type on function ์ด ์ž๊พธ ๋– ์„œ ๋ณด๊ธฐ ์‹ซ๋‹ค. ๊ทธ๋ž˜์„œ rules ๋ถ€๋ถ„์„ ์•„๋ž˜์™€ ๊ฐ™์ด ์„ค์ •ํ•ด์ค€๋‹ค.
์•„๋ž˜ ์„ค์ •์—์„œ none์„ warn์œผ๋กœ ๋ณ€๊ฒฝํ•˜๋ฉด ๊ฒฝ๊ณ ๋ฅผ ๋„์šฐ๊ณ , error๋ฅผ ๋„์šฐ๋ฉด ์—๋Ÿฌ๋ฅผ ๋ฐœ์ƒ์‹œํ‚จ๋‹ค.
{
  "parser": "@typescript-eslint/parser",
  "plugins": ["@typescript-eslint"],
  "extends": [
    "plugin:react/recommended",// Uses the recommended rules from @eslint-plugin-react"plugin:@typescript-eslint/recommended",
    "prettier/@typescript-eslint",
    "plugin:prettier/recommended"
  ],
  "parserOptions": {
    "ecmaVersion": 6,
    "sourceType": "module",
    "ecmaFeatures": {
      "jsx": true
    }
  },
  "rules": {
    "semi": 2,
    "@typescript-eslint/explicit-function-return-type": [
      "none",
      { "allowTypedFunctionExpressions": true }
    ]
  },
  "settings": {
    "react": {
      "version": "detect"
    }
  }
}