You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: crates/oxc_linter/src/rules/import/namespace.rs
+6-4
Original file line number
Diff line number
Diff line change
@@ -40,10 +40,12 @@ pub struct Namespace {
40
40
41
41
declare_oxc_lint!(
42
42
/// ### What it does
43
-
/// Enforces names exist at the time they are dereferenced, when imported as a full namespace (i.e. import * as foo from './foo'; foo.bar(); will report if bar is not exported by ./foo.).
44
-
/// Will report at the import declaration if there are no exported names found.
45
-
/// Also, will report for computed references (i.e. foo["bar"]()).
46
-
/// Reports on assignment to a member of an imported namespace.
43
+
/// Enforces names exist at the time they are dereferenced, when imported as
44
+
/// a full namespace (i.e. `import * as foo from './foo'; foo.bar();` will
45
+
/// report if bar is not exported by `./foo.`). Will report at the import
46
+
/// declaration if there are no exported names found. Also, will report for
47
+
/// computed references (i.e. `foo["bar"]()`). Reports on assignment to a
Copy file name to clipboardexpand all lines: crates/oxc_linter/src/rules/jsx_a11y/scope.rs
+2-2
Original file line number
Diff line number
Diff line change
@@ -23,15 +23,15 @@ pub struct Scope;
23
23
declare_oxc_lint!(
24
24
/// ### What it does
25
25
///
26
-
/// The scope prop should be used only on <th> elements.
26
+
/// The scope prop should be used only on `<th>` elements.
27
27
///
28
28
/// ### Why is this bad?
29
29
/// The scope attribute makes table navigation much easier for screen reader users, provided that it is used correctly.
30
30
/// Incorrectly used, scope can make table navigation much harder and less efficient.
31
31
/// A screen reader operates under the assumption that a table has a header and that this header specifies a scope. Because of the way screen readers function, having an accurate header makes viewing a table far more accessible and more efficient for people who use the device.
0 commit comments