Skip to content

Commit

Permalink
fix(linter): correct example for no-obj-calls rule (#2618)
Browse files Browse the repository at this point in the history
I think someone used find-and-replace! 🥲
  • Loading branch information
overlookmotel committed Mar 6, 2024
1 parent 1f14d94 commit 09d4c7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/oxc_linter/src/rules/eslint/no_obj_calls.rs
Expand Up @@ -46,8 +46,8 @@ declare_oxc_lint! {
/// let json = JSON();
/// let newJson = new JSON();
///
/// let atomics = CompactStringics();
/// let newCompactStringics = new CompactStringics();
/// let atomics = Atomics();
/// let newAtomics = new Atomics();
///
/// let intl = Intl();
/// let newIntl = new Intl();
Expand All @@ -58,7 +58,7 @@ declare_oxc_lint! {
/// // Good
/// let area = r => 2 * Math.PI * r * r;
/// let object = JSON.parse("{}");
/// let first = CompactStringics.load(sharedArray, 0);
/// let first = Atomics.load(sharedArray, 0);
/// let segmenterFrom = Intl.Segmenter("fr", { granularity: "word" });
/// ```
NoObjCalls,
Expand Down

0 comments on commit 09d4c7d

Please sign in to comment.