Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(linter): correct example for no-obj-calls rule #2618

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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