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

chore: rename action to use the internal naming convention #4420

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions crates/biome_configuration/src/analyzer/assists/actions.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/biome_js_analyze/src/assists/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
use biome_analyze::declare_assists_group;

pub mod organize_imports;
pub mod sort_jsx_props;
pub mod use_sorted_attributes;

declare_assists_group! {
pub Source {
name : "source" ,
rules : [
self :: organize_imports :: OrganizeImports ,
self :: sort_jsx_props :: SortJsxProps ,
self :: use_sorted_attributes :: UseSortedAttributes ,
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use biome_rowan::{AstNode, BatchMutationExt};
use crate::JsRuleAction;

declare_source_rule! {
/// Enforce props sorting in JSX elements.
/// Enforce attribute sorting in JSX elements.
///
/// This rule checks if the JSX props are sorted in a consistent way.
/// Props are sorted alphabetically.
Expand All @@ -33,17 +33,17 @@ declare_source_rule! {
/// <Hello lastName="Smith" firstName="John" {...this.props} tel="0000" address="111 Main Street" {...another.props} lastName="Smith" />;
/// ```
///
pub SortJsxProps {
version: "1.9.0",
name: "sortJsxProps",
language: "js",
pub UseSortedAttributes {
version: "2.0.0",
name: "useSortedAttributes",
language: "jsx",
recommended: false,
sources: &[RuleSource::EslintReact("jsx-sort-props")],
source_kind: RuleSourceKind::SameLogic,
}
}

impl Rule for SortJsxProps {
impl Rule for UseSortedAttributes {
type Query = Ast<JsxAttributeList>;
type State = PropGroup;
type Signals = Box<[Self::State]>;
Expand Down
4 changes: 2 additions & 2 deletions crates/biome_js_analyze/src/options.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/@biomejs/backend-jsonrpc/src/workspace.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/@biomejs/biome/configuration_schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.