[英]ESLint complains my code format I don't understand why
我相信這些字符是換行符。 嘗試這個:
return (
<View>
<Text>Hello</Text>
</View>
);
該文檔解釋了如何設置 eslint 以自動修復代碼問題。 在 Visual Studio Code 中,打開File > Preferences > Settings
並搜索“保存時的代碼操作”。 單擊Edit in settings.json
並啟用自動修復:
"editor.codeActionsOnSave": {
"source.fixAll.eslint": false
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.