Skip to content

Commit

Permalink
fix(lint): NO-JIRA fix linter rule for text styles (#494)
Browse files Browse the repository at this point in the history
Co-authored-by: Julio Ortega <julio.ortega@dialpad.com>
  • Loading branch information
ninamarina and juliodialpad authored Sep 11, 2024
1 parent b019ff6 commit c6b5f3f
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,19 @@ module.exports = {
VAttribute(node) {
if (node.key.name === 'class') {
const classes = node.value.value.split(' ');
const typographyClasses = ['d-fs', 'd-fw', 'd-lh', 'd-ff'];
const typographyClasses = [
'd-fs',
'd-fw-normal',
'd-fw-medium',
'd-fw-semibold',
'd-fw-bold',
'd-lh',
'd-ff-custom',
'd-ff-sans',
'd-ff-mono',
'd-ff-marketing',
'd-ff-unset',
];
const typographyClassesFound = classes.filter((className) =>
typographyClasses.some((typographyClass) => className.includes(typographyClass))
);
Expand Down

0 comments on commit c6b5f3f

Please sign in to comment.