github:https://github.com/wmonk/create-react-app-typescriptreact
報錯:Import sources within a group must be alphabetized.
緣由:import名稱排序問題,要求按照字母從小到大排序;修改rules的規則「ordered-imports」爲false便可。
解決:https://cdn2.jianshu.io/p/a7d308b28e61git
配置antd按需加載(使用 ts-import-plugin)
配置說明:github