(相關資料圖)
本教程操作環境:Windows10系統、react17版、Dell G3電腦。
react怎么刪除eslint?
React關閉Eslint代碼檢查
1、npm run eject
2、在package.json 中修改代碼
"eslintConfig": { "extends": [ "react-app", "react-app/jest" ], "rules": { "no-undef": "off", "no-restricted-globals": "off", "no-unused-vars": "off" } },
3、重啟項目
推薦學習:《react視頻教程》
以上就是react怎么刪除eslint的詳細內容,更多請關注php中文網其它相關文章!