Skip to content

Commit

Permalink
feat(linter/import): change all recommend rules category to suspicious
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Mar 30, 2024
1 parent 2365198 commit 503ba15
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/import/default.rs
Expand Up @@ -32,7 +32,7 @@ declare_oxc_lint!(
/// import bar from './bar' // no default export found in ./bar
/// ```
Default,
nursery
correctness
);

impl Rule for Default {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/import/export.rs
Expand Up @@ -36,7 +36,7 @@ declare_oxc_lint!(
/// export * from "./export-all" // export-all.js also export foo
/// ```
Export,
nursery
correctness
);

impl Rule for Export {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/import/named.rs
Expand Up @@ -26,7 +26,7 @@ declare_oxc_lint!(
/// ```javascript
/// ```
Named,
nursery
correctness
);

impl Rule for Named {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/import/namespace.rs
Expand Up @@ -47,7 +47,7 @@ declare_oxc_lint!(
/// Also, will report for computed references (i.e. foo["bar"]()).
/// Reports on assignment to a member of an imported namespace.
Namespace,
nursery
correctness
);

impl Rule for Namespace {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/import/no_duplicates.rs
Expand Up @@ -16,7 +16,7 @@ declare_oxc_lint!(
///
/// Reports if a resolved path is imported more than once.
NoDuplicates,
nursery
suspicious
);

impl Rule for NoDuplicates {
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/import/no_named_as_default.rs
Expand Up @@ -39,7 +39,7 @@ declare_oxc_lint!(
/// import bar from './foo.js';
/// ```
NoNamedAsDefault,
nursery
suspicious
);

impl Rule for NoNamedAsDefault {
Expand Down
Expand Up @@ -43,7 +43,7 @@ declare_oxc_lint!(
/// const bar = foo.bar // trying to access named export via default
/// ```
NoNamedAsDefaultMember,
nursery
suspicious
);
fn get_symbol_id_from_ident(
ctx: &LintContext<'_>,
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/import/no_unresolved.rs
Expand Up @@ -25,7 +25,7 @@ declare_oxc_lint!(
///
/// Ensures an imported module can be resolved to a module on the local filesystem.
NoUnresolved,
nursery
correctness
);

impl Rule for NoUnresolved {
Expand Down

0 comments on commit 503ba15

Please sign in to comment.