loading

v33.3.1

select option

no-deprecated-components

Disallows the usage of deprecated components and sets deletion dates

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.

Severity

Recommended severity: error

rules: {
'@carta/ink-rules/no-deprecated-props': 2 ,
}

Components affected by these rules

ComponentReplacement componentDate of deletionMigration guideHow to refactor?
DeprecatedDropdownDropdownJuly 1st, 2023linkmanual refactor only
DeprecatedDropdownItemDropdown.Item
InputNewInputSeptember 1st, 2023linkcodemod not available + manual refactor
CheckboxNewCheckboxSeptember 1st, 2023linkcodemod + manual refactor
RadioNewRadioSeptember 1st, 2023linkcodemod not available + manual refactor
DatePickerNewDatePickerSeptember 1st, 2023linkmanual refactor only
FormSectionNewFormSectionSeptember 1st, 2023linkcodemod not available + manual refactor
FullPageSpreadsheetFullPageSpreadsheetV2September 1st, 2023linkmanual refactor only
ModalContent & MultiStepModalModalSeptember 1st, 2023not availablemanual refactor
NavHorizontalNav, VerticalNav or SubNavSeptember 1st, 2023linkmanual refactor only
SelectNewSelectDecember 1st, 2023linkcodemod 1 + codemod 2 + manual refactor
TextAreaNewTextAreaDecember 1st, 2023linkcodemod not available + manual refactor
TypeaheadNewTypeaheadDecember 1st, 2023linkmanual refactor only
TileRowTilesDecember 1st, 2023not availablecodemod not available + manual refactor
StafferStaffOutlinerDecember 1st, 2023linkcodemod not available + manual refactor
LedgeruseLedgerDecember 1st, 2023linkmanual refactor only
SpreadsheetSpreadsheetV2December 1st, 2023linkmanual refactor only
TableNewTableDecember 1st, 2023linkmanual refactor only
TableBodyRowNewTable.RowDecember 1st, 2023linkmanual refactor only
TableCellNewTable.CellDecember 1st, 2023linkmanual refactor only
TableTwiddleRowNewTable.TwiddleDecember 1st, 2023linkmanual refactor only

Examples

🚫 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.

How this rule works

To investigate how this rule works, check out this gist on AST Explorer.

Is this page helpful?