Skip to content

Commit

Permalink
chore: rename action to use the internal naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Oct 29, 2024
1 parent f543f12 commit 84dd8b2
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 20 deletions.
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.

0 comments on commit 84dd8b2

Please sign in to comment.