Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add rule no inline styles #224

Merged
merged 7 commits into from
Sep 5, 2024

Conversation

Whomy09
Copy link
Contributor

@Whomy09 Whomy09 commented Sep 4, 2024

Summary

A new rule was added and the respective documentation was also added.

Related Issues

#206

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

@David-Pena David-Pena requested a review from rrd108 September 4, 2024 23:01
@David-Pena
Copy link
Collaborator

The PR ci failed, please check the details 👀

@David-Pena
Copy link
Collaborator

David-Pena commented Sep 5, 2024

Hi @Whomy09
Its failing because its missing the reportNoInlineStyles invoke to the rulesReport.ts file ⬇️

image

You can check details by running yarn rules:missing

const matches = [...template.content.matchAll(regex)]

matches?.forEach((match) => {
const lineNumber = getLineNumber(template.content.trim(), match[0])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the from parameter here otherwise if the same pattern found multiple times, it will report the same line number for them

@rrd108 rrd108 merged commit ec7396f into rrd108:main Sep 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants