Open gracekrcx opened 3 years ago
(1) ts(8010) (2) eslint
VScode 的 problems 顯示的錯誤訊息 Type annotations can only be used in TypeScript files.
直接拿去 google 就可以提到 js 'types' can only be used in a .ts file - Visual Studio Code using @ts-check Visual Studio Code:[js] types can only be used in a .ts file 文章提到:
Use "javascript.validate.enable": false in your VS Code settings It doesn't disable ESLINT.
可以從 output 做簡單確認 eslint server 是不是有 running 鐵人賽:透過 ESLint 學習 JavaScript ES6 五分鐘快速替專案加上 ESLint
在 VScode 的 problems 可以看到兩個不同的錯誤提示
(1) ts(8010) (2) eslint
直接拿去 google 就可以提到 js 'types' can only be used in a .ts file - Visual Studio Code using @ts-check Visual Studio Code:[js] types can only be used in a .ts file 文章提到:
怎麼確認 ESlint 跑起來了
可以從 output 做簡單確認 eslint server 是不是有 running 鐵人賽:透過 ESLint 學習 JavaScript ES6 五分鐘快速替專案加上 ESLint