我的vs code有安裝eslint插件,但是不這道爲什麼這兩天很多代碼校驗都不起作用了
一頓操作猛如虎,最後發現代碼開始的時候有一條黃線 爆出了一個錯誤
ESLint is disabled since its execution has not been approved or denied yet. Use the light bulb menu to open the approval dialog.
網上找了半天
還去看了源碼
也沒看明白什麼
最終發現是
vs code右下角這個eslint校驗沒有打開
我也不知道我什麼時候誤操作給關掉了
點擊一下,選擇Allow Everywhere 就OK啦