mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
chore(linter): remove extra spacing (#141)
This commit is contained in:
parent
d4a10e3fac
commit
b3dfb0ab51
5 changed files with 0 additions and 5 deletions
|
|
@ -33,7 +33,6 @@ declare_oxc_lint!(
|
|||
/// When the Array constructor is called with a single number argument, an array with the specified number of empty slots (not actual undefined values) is constructed.
|
||||
/// If a callback function is passed to the function of this array, the callback function is never invoked because the array has no actual elements.
|
||||
///
|
||||
///
|
||||
/// ### Example
|
||||
/// ```javascript
|
||||
/// const list = new Array(5).map(_ => createElement());
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ declare_oxc_lint!(
|
|||
/// ### Why is this bad?
|
||||
/// A for loop that is known to run infinitely or never run is considered a bug.
|
||||
///
|
||||
///
|
||||
/// ### Example
|
||||
/// ```javascript
|
||||
/// for (var i = 0; i < 10; i--) {}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ declare_oxc_lint!(
|
|||
/// Use of the Array constructor to construct a new array is generally discouraged in favor of array literal notation because of the single-argument pitfall and because the Array global may be redefined.
|
||||
/// The exception is when the Array constructor is used to intentionally create sparse arrays of a specified size by giving the constructor a single numeric argument.
|
||||
///
|
||||
///
|
||||
/// ### Example
|
||||
/// ```javascript
|
||||
/// let arr = new Array();
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ declare_oxc_lint!(
|
|||
/// `debugger` statements do not affect functionality when a debugger isn't attached.
|
||||
/// They're most commonly an accidental debugging leftover.
|
||||
///
|
||||
///
|
||||
/// ### Example
|
||||
/// ```javascript
|
||||
/// const data = await getData();
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ declare_oxc_lint!(
|
|||
/// Empty block statements, while not technically errors, usually occur due to refactoring that wasn’t completed.
|
||||
/// They can cause confusion when reading code.
|
||||
///
|
||||
///
|
||||
/// ### Example
|
||||
/// ```javascript
|
||||
/// if (condition) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue