Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Sep 5, 2024
1 parent d7d4719 commit 335745c
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_linter/src/rules/jsdoc/check_access.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct CheckAccess;

declare_oxc_lint!(
/// ### What it does
///
///
/// Checks that `@access` tags use one of the following values:
/// - "package", "private", "protected", "public"
///
Expand All @@ -34,7 +34,7 @@ declare_oxc_lint!(
/// - Use of multiple instances of `@access` (or the `@public`, etc) on the same doc block.
///
/// ### Why is this bad?
///
///
/// It is important to have a consistent way of specifying access levels.
///
/// ### Examples
Expand Down
4 changes: 2 additions & 2 deletions crates/oxc_linter/src/rules/jsdoc/check_property_names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ pub struct CheckPropertyNames;

declare_oxc_lint!(
/// ### What it does
///
///
/// Ensures that property names in JSDoc are not duplicated on the same block and that nested properties have defined roots.
///
/// ### Why is this bad?
///
///
/// `@property` tags with the same name can be confusing and may indicate a mistake.
///
/// ### Examples
Expand Down
4 changes: 2 additions & 2 deletions crates/oxc_linter/src/rules/jsdoc/check_tag_names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ pub struct CheckTagNames(Box<CheckTagnamesConfig>);

declare_oxc_lint!(
/// ### What it does
///
///
/// Reports invalid block tag names.
/// Additionally checks for tag names that are redundant when using a type checker such as TypeScript.
///
/// ### Why is this bad?
///
///
/// Using invalid tags can lead to confusion and make the documentation harder to read.
///
/// ### Examples
Expand Down
4 changes: 2 additions & 2 deletions crates/oxc_linter/src/rules/oxc/no_accumulating_spread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ pub struct NoAccumulatingSpread;

declare_oxc_lint!(
/// ### What it does
///
///
/// Prevents using object or array spreads on accumulators in `Array.prototype.reduce()` and in loops.
///
/// ### Why is this bad?
///
///
/// Object and array spreads create a new object or array on each iteration.
/// In the worst case, they also cause O(n) copies (both memory and time complexity).
/// When used on an accumulator, this can lead to `O(n^2)` memory complexity and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ enum ConsistentIndexedObjectStyleConfig {

declare_oxc_lint!(
/// ### What it does
///
///
/// Require or disallow the `Record` type.
///
/// ### Why is this bad?
///
///
/// Inconsistent style for indexed object types can harm readability in a project.
///
/// ### Examples
Expand Down
4 changes: 2 additions & 2 deletions crates/oxc_linter/src/rules/unicorn/no_unreadable_iife.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ pub struct NoUnreadableIife;

declare_oxc_lint!(
/// ### What it does
///
///
/// This rule disallows IIFEs with a parenthesized arrow function body.
///
/// ### Why is this bad?
///
///
/// IIFEs with a parenthesized arrow function body are unreadable.
///
/// ### Examples
Expand Down
4 changes: 2 additions & 2 deletions crates/oxc_linter/src/rules/unicorn/no_useless_undefined.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ impl Default for NoUselessUndefined {

declare_oxc_lint!(
/// ### What it does
///
///
/// Do not use useless `undefined`.
///
/// ### Why is this bad?
///
///
/// `undefined` is the default value for new variables, parameters, return statements, etc… so specifying it doesn't make any difference.
///
/// ### Examples
Expand Down
4 changes: 2 additions & 2 deletions crates/oxc_linter/src/rules/unicorn/number_literal_case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ pub struct NumberLiteralCase;

declare_oxc_lint!(
/// ### What it does
///
///
/// This rule enforces proper case for numeric literals.
///
/// ### Why is this bad?
///
///
/// When both an identifier and a number literal are in lower case, it can be hard to differentiate between them.
///
/// ### Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ declare_oxc_lint!(
/// This rule prefers borrowing methods from the prototype instead of the instance.
///
/// ### Why is this bad?
///
///
/// “Borrowing” a method from an instance of `Array` or `Object` is less clear than getting it from the corresponding prototype.
///
/// ### Examples
Expand Down

0 comments on commit 335745c

Please sign in to comment.