Skip to content

Commit d4a1581

Browse files
committed
docs(linter): Add a link to MDN for the no-proto rule. (#16213)
To provide better information to developers when they encounter this :)
1 parent ad2ea37 commit d4a1581

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/oxc_linter/src/rules/eslint/no_proto.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,17 @@ pub struct NoProto;
1616
declare_oxc_lint!(
1717
/// ### What it does
1818
///
19-
/// Disallow the use of the `__proto__` property
19+
/// Disallow the use of the `__proto__` property.
2020
///
2121
/// ### Why is this bad?
2222
///
2323
/// The `__proto__` property has been deprecated as of ECMAScript 3.1 and
2424
/// shouldn’t be used in new code. Use `Object.getPrototypeOf` and
2525
/// `Object.setPrototypeOf` instead.
2626
///
27+
/// For more information, see
28+
/// [the MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto).
29+
///
2730
/// ### Examples
2831
///
2932
/// Examples of **incorrect** code for this rule:

0 commit comments

Comments
 (0)