Skip to content

linter: plugin tree_shaking is enabled by default #7031

@Sysix

Description

@Sysix

What version of Oxlint are you using?

latest

What command did you run?

npx oxlint --config=oxlint.json --disable-typescript-plugin --disable-oxc-plugin --disable-unicorn-plugin --disable-react-plugin

What does your .oxlint.json config file look like?

{
  "categories": {
    "correctness": "off",
    "nursery": "deny"
  }
}

What happened?

With this configuration I get the eslint-plugin-tree-shaking enabled.

  × eslint-plugin-tree-shaking(no-side-effects-in-initialization): Cannot determine side-effects of calling member function
   ╭─[scripts/constants.ts:5:33]
 4 │ 
 5 │ export const TARGET_DIRECTORY = path.resolve(__dirname, '..', '.oxc_sparse');
   ·                                 ────────────
 6 │ export const VERSION_PREFIX = 'oxlint_v';
   ╰────

Finished in 18ms on 21 files with 5 rules using 24 threads.

I can't disable it

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linterArea - LinterC-bugCategory - Buggood first issueExperience Level - Good for newcomers

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions