mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
chore(linter): correct links to docs in rules (#7183)
This commit is contained in:
parent
eea8879642
commit
500effe5bb
3 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ fn max_dependencies_diagnostic<S: Into<Cow<'static, str>>>(
|
|||
.with_label(span)
|
||||
}
|
||||
|
||||
/// <https://github.com/import-js/eslint-plugin-import/blob/v2.29.1/docs/rules/max-dependencies.md>
|
||||
/// <https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/max-dependencies.md>
|
||||
#[derive(Debug, Default, Clone)]
|
||||
pub struct MaxDependencies(Box<MaxDependenciesConfig>);
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ declare_oxc_lint!(
|
|||
restriction
|
||||
);
|
||||
|
||||
/// <https://github.com/import-js/eslint-plugin-import/blob/main/src/rules/no-amd.js>
|
||||
/// <https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-amd.md>
|
||||
impl Rule for NoAmd {
|
||||
fn run<'a>(&self, node: &AstNode<'a>, ctx: &LintContext<'a>) {
|
||||
// not in top level
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ fn is_conditional(parent_node: &AstNode, ctx: &LintContext) -> bool {
|
|||
is_conditional(parent, ctx)
|
||||
}
|
||||
}
|
||||
/// <https://github.com/import-js/eslint-plugin-import/blob/main/src/rules/no-commonjs.js>
|
||||
/// <https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-commonjs.md>
|
||||
impl Rule for NoCommonjs {
|
||||
fn from_configuration(value: serde_json::Value) -> Self {
|
||||
let obj = value.get(0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue