由于存在eslint,在我的应用中首选默认导出错误吗?

时间:2019-04-08 08:10:05

标签: javascript eslint

正如标题中提到的那样,我在阻止我进入SourceTree时遇到了一个小问题,我遇到了导出问题,这是我的代码:

export const watchContrat = function* watchContrat() {
    yield takeLatest(DETAILS_CONTRAT.GET_CALL, getDetailsContrat);
    yield takeLatest(OPERATION_CONTRAT.GET_CALL, getOperationsContrat);
    yield takeLatest(NOTES_CONTRAT.GET_CALL, getNotesContrat);
    yield takeLatest(NOTE_CONTRAT.PUT_CALL, deleteNoteContrat);
};

我不知道如何解决它,我尝试了一下,但是遇到了js错误,这是正常现象:

const watchContrat = function* watchContrat() {
    yield takeLatest(DETAILS_CONTRAT.GET_CALL, getDetailsContrat);
    yield takeLatest(OPERATION_CONTRAT.GET_CALL, getOperationsContrat);
    yield takeLatest(NOTES_CONTRAT.GET_CALL, getNotesContrat);
    yield takeLatest(NOTE_CONTRAT.PUT_CALL, deleteNoteContrat);
};

export default watchContrat;

任何帮助将不胜感激。

0 个答案:

没有答案