Skip to content

Commit

Permalink
fix: add more classes to no-deprecated-classes rule
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Feb 7, 2024
1 parent 95d9e04 commit 0ec465c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rules/no-deprecated-classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ const replacements: Replacer[] = [
([weight]) => `font-${weight}`,
],
[/^text-(capitalize|uppercase|lowercase)$/, ([casing]) => casing],
['text--secondary', 'text-rui-text-secondary'],
['white--text', 'text-white'],
['primary--text', 'text-rui-primary'],
];

function isString(replacement: Replacer): replacement is StringReplacer {
Expand Down

0 comments on commit 0ec465c

Please sign in to comment.