mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
fix(linter): correct example for no-obj-calls rule (#2618)
I think someone used find-and-replace! 🥲
This commit is contained in:
parent
1f14d946aa
commit
09d4c7d649
1 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue