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"
}
}
}