使用Angular時,報錯 [tslint] " should be ’
報錯原因是因爲 ESLint 的嚴格模式,限制了使用 ’ ,甚至多一個空格都會報錯。
我們只需要在 settings.json 這個用戶配置文件中添加配置項
"tslint.autoFixOnSave": true,
"prettier.singleQuote": true
配置完成即可。
報錯原因是因爲 ESLint 的嚴格模式,限制了使用 ’ ,甚至多一個空格都會報錯。
我們只需要在 settings.json 這個用戶配置文件中添加配置項
"tslint.autoFixOnSave": true,
"prettier.singleQuote": true
配置完成即可。
https://www.bilibili.com/video/BV1k8411575T/?vd_source=d68ed178f151e80fea1e02efd205802c