Tools
This rule disallows the use of deprecated components. If these components are already in use, they should be replaced with their newer counterparts. These components will be deleted on their determined date. Follow each migration guide to replace older components and reach out to the ink team if you have any problems.
Recommended severity: error
rules: {'@carta/ink-rules/no-deprecated-props': 2 ,}
Component | Replacement component | Date of deletion | Migration guide | How to refactor? |
---|---|---|---|---|
DeprecatedDropdown | Dropdown | July 1st, 2023 | link | manual refactor only |
DeprecatedDropdownItem | Dropdown.Item | |||
Input | NewInput | September 1st, 2023 | link | codemod not available + manual refactor |
Checkbox | NewCheckbox | September 1st, 2023 | link | codemod + manual refactor |
Radio | NewRadio | September 1st, 2023 | link | codemod not available + manual refactor |
DatePicker | NewDatePicker | September 1st, 2023 | link | manual refactor only |
FormSection | NewFormSection | September 1st, 2023 | link | codemod not available + manual refactor |
FullPageSpreadsheet | FullPageSpreadsheetV2 | September 1st, 2023 | link | manual refactor only |
ModalContent & MultiStepModal | Modal | September 1st, 2023 | not available | manual refactor |
Nav | HorizontalNav, VerticalNav or SubNav | September 1st, 2023 | link | manual refactor only |
Select | NewSelect | December 1st, 2023 | link | codemod 1 + codemod 2 + manual refactor |
TextArea | NewTextArea | December 1st, 2023 | link | codemod not available + manual refactor |
Typeahead | NewTypeahead | December 1st, 2023 | link | manual refactor only |
TileRow | Tiles | December 1st, 2023 | not available | codemod not available + manual refactor |
Staffer | StaffOutliner | December 1st, 2023 | link | codemod not available + manual refactor |
Ledger | useLedger | December 1st, 2023 | link | manual refactor only |
Spreadsheet | SpreadsheetV2 | December 1st, 2023 | link | manual refactor only |
Table | NewTable | December 1st, 2023 | link | manual refactor only |
TableBodyRow | NewTable.Row | December 1st, 2023 | link | manual refactor only |
TableCell | NewTable.Cell | December 1st, 2023 | link | manual refactor only |
TableTwiddleRow | NewTable.Twiddle | December 1st, 2023 | link | manual refactor only |
🚫 Incorrect code for this rule:
Any code containing the deprecated components listed above.
✅ Correct code for this rule:
Any code that is using the replacement component instead of the deprecated ones.
To investigate how this rule works, check out this gist on AST Explorer.
Is this page helpful?