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

Implement quick fix for mix_attributes_ordering rule #382

Closed
tilucasoli opened this issue Jul 16, 2024 · 0 comments · Fixed by #381
Closed

Implement quick fix for mix_attributes_ordering rule #382

tilucasoli opened this issue Jul 16, 2024 · 0 comments · Fixed by #381

Comments

@tilucasoli
Copy link
Collaborator

Description

Implement a quick fix for the mix_attributes_ordering rule to automatically reorder attributes within a Style declaration. The quick fix should:

  1. Analyze the current order of attributes in the Style declaration
  2. Reorder the attributes to match the pre-established order
  3. Should work on every ways to declare attributes

Example

before the quick fix

final style = Style(
  $flex.gap(3),
  $box.color.red(),
  $flex.row(),
  $box.borderRadius(3),
  $text.style.color.red(),
);

after the quick fix

final style = Style(
  $flex.gap(3),
  $flex.row(),
  $box.color.red(),
  $box.borderRadius(3),
  $text.style.color.red(),
);

This quick fix will greatly improve developer productivity by automating the process of fixing attribute ordering issues in Style declarations.

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 a pull request may close this issue.

1 participant