Openbravo Issue Tracking System - POS2 | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0053416 | POS2 | POS | public | 2023-09-07 14:49 | 2023-09-07 14:49 |
| Reporter | Vitaliy Malets | ||||
| Assigned To | Retail | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Platform | OS | 5 | OS Version | ||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Merge Request Status | |||||
| Review Assigned To | |||||
| OBNetwork customer | No | ||||
| Support ticket | |||||
| Regression level | |||||
| Regression date | |||||
| Regression introduced in release | |||||
| Regression introduced by commit | |||||
| Triggers an Emergency Pack | No | ||||
| Summary | 0053416: Remove redundant React imports | ||||
| Description | We use version 17 of React. This version doesn't require to import React in each component any more. https://dev.to/titungdup/you-no-longer-need-to-import-react-from-react-3pbj [^] The official site provides a script to remove all of them from the project. https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#removing-unused-react-imports [^] But current ESLint settings require this import. So maybe it makes sense a little bit change the ESLint config and remove all redundant imports to make the projet a bit lighter? https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#eslint [^] | ||||
| Steps To Reproduce | open any react component in the project | ||||
| Proposed Solution | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2023-09-07 14:49 | Vitaliy Malets | New Issue | |||
| 2023-09-07 14:49 | Vitaliy Malets | Assigned To | => Retail | ||
| 2023-09-07 14:49 | Vitaliy Malets | OBNetwork customer | => No | ||
| 2023-09-07 14:49 | Vitaliy Malets | Triggers an Emergency Pack | => No | ||
| There are no notes attached to this issue. |