We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import/no-absolute-path
1 parent b4cc222 commit 214c8e7Copy full SHA for 214c8e7
crates/oxc_linter/src/rules/import/no_absolute_path.rs
@@ -15,13 +15,19 @@ fn no_absolute_path_diagnostic(span: Span) -> OxcDiagnostic {
15
}
16
17
/// <https://github.com/import-js/eslint-plugin-import/blob/v2.31.0/docs/rules/no-absolute-path.md>
18
-#[derive(Debug, Default, Clone)]
+#[derive(Debug, Clone)]
19
pub struct NoAbsolutePath {
20
esmodule: bool,
21
commonjs: bool,
22
amd: bool,
23
24
25
+impl Default for NoAbsolutePath {
26
+ fn default() -> Self {
27
+ Self { esmodule: true, commonjs: true, amd: false }
28
+ }
29
+}
30
+
31
declare_oxc_lint!(
32
/// ### What it does
33
///
0 commit comments