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에 밑줄 안들어옵니다...
왜 그런걸까요?....