Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(attributes-order): add sortLineLength option#2759

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
FloEdelmann merged 4 commits intovuejs:masterfrom0xA1337:master
Sep 5, 2025

Conversation

@0xA1337
Copy link
Contributor

Resolves#2758.

@changeset-bot
Copy link

changeset-botbot commentedJun 13, 2025
edited
Loading

🦋 Changeset detected

Latest commit:5cd66bd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
NameType
eslint-plugin-vueMinor

Not sure what this means?Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@0xA13370xA1337 changed the titlefeat(attributes-order): add sortByLineLength optionfeat(attributes-order): add sortLineLength optionJun 13, 2025
Copy link
Member

@waynzhwaynzh left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM!

Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a newsortLineLength option to thevue/attributes-order ESLint rule that allows attributes to be sorted by their line length within the same attribute group. When enabled, shorter attributes come before longer ones, providing an alternative sorting method to the existing alphabetical option.

  • AddssortLineLength configuration option to the attributes-order rule
  • Implements line length comparison logic for attributes within the same position group
  • Adds comprehensive test coverage for the new sorting behavior

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

FileDescription
lib/rules/attributes-order.jsImplements the core logic for sorting attributes by line length
tests/lib/rules/attributes-order.jsAdds comprehensive test cases for the new sortLineLength option
docs/rules/attributes-order.mdDocuments the new option with examples and usage guidelines
.changeset/social-ghosts-dress.mdRecords the feature addition for changelog generation

Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.

Copy link
Member

@FloEdelmannFloEdelmann left a comment

Choose a reason for hiding this comment

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

Looks good to me 🙂

@FloEdelmannFloEdelmann merged commitadc460d intovuejs:masterSep 5, 2025
15 checks passed
@github-actionsgithub-actionsbot mentioned this pull requestSep 5, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@FloEdelmannFloEdelmannFloEdelmann approved these changes

Copilot code reviewCopilotCopilot left review comments

@waynzhwaynzhwaynzh approved these changes

@ota-meshiota-meshiAwaiting requested review from ota-meshi

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AddsortLineLength option tovue/attributes-order rule

3 participants

@0xA1337@FloEdelmann@waynzh

[8]ページ先頭

©2009-2025 Movatter.jp