• 카테고리

    질문 & 답변
  • 세부 분야

    프로그래밍 언어

  • 해결 여부

    미해결

선생님 자꾸 질문드려서죄송합니다. [ function]

21.01.27 22:01 작성 조회수 133

2

function fetchItems2() {
let items2 = ['a', 'b', 'c'];
return new Promise(function (resolve) {
resolve(items2);
})
}
tsconfig.json
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"noImplicitAny": true, // 묵시적으로 any로도 해라는 것
"strict": true,
"strictFunctionTypes": true,
},
"include": ["./src/**/*"]
}
.eslintrc.js
module.exports = {
root: true,
env: {
browser: true,
node: true,
jest: true,
},
extends: [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
plugins: ["prettier", "@typescript-eslint"],
rules: {
"prettier/prettier": [
"error",
{
singleQuote: true,
semi: true,
useTabs: false,
tabWidth: 2,
printWidth: 80,
bracketSpacing: true,
arrowParens: "avoid",
},
],
// "@typescript-eslint/no-explicit-any": "warn",
// "@typescript-eslint/explicit-function-return-type": "off",
// "prefer-const": "off",
},
parserOptions: {
parser: "@typescript-eslint/parser",
},
};
설정했는데.. 선생님 화면하고 다른 부분은 function에 밑줄 안들어옵니다...
왜 그런걸까요?....

답변 2

·

답변을 작성해보세요.

0

열어주셔서 너무  감사합니다. 캡틴선생님^^ 

이미 결제 해두었습니다. ㅎㅎㅎ 

선생님 나중에 뷰 타입스크립트 끝나시면 리액트도 부탁드리면 안될까요? 

https://2020.stateofjs.com/en-US/technologies/front-end-frameworks/ Svelte  이것도 부탁드립니다. 

선생님의 영원한 팬 료스케 ㅎㅎ

0

안녕하세요 ryosuke님, VSCode에 ESLint 설정이 잘 안되어 있는 것 같아요. 제가 교과 과정 구성상 후속 강좌에 해당 내용을 안내 했는데 미리 보기로 열어 놨으니까 먼저 보셔도 좋을 것 같아요 :)

https://www.inflearn.com/course/%ED%83%80%EC%9E%85%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8-%EC%8B%A4%EC%A0%84/lecture/61087?tab=curriculum