Skip to content

[@rollup/plugin-eslint] There is a conflict between @rollup/plugin-typescript and @rollup/plugin-eslint #1231

Description

@aiden271828
  • Rollup Plugin Name: @rollup/plugin-eslint
  • Rollup Plugin Version: 8.0.2
  • Rollup Version: 2.77.2
  • Operating System (or Browser): Windows
  • Node Version: 14.19.0
  • Link to reproduction (⚠️ read below): https://replit.com/@aiden271828/rollup?v=1

Expected Behavior

Resolve the conflict between @rollup/plugin-typescript and @rollup/plugin-eslint

Actual Behavior

@rollup/plugin-eslint uses the file compiled by @rollup/plugin-typescript for verification.

Additional Information

According to my example, there is no error when running npm run eslint, but there is an error when running npx rollup -c. The reason is that @rollup/plugin-eslint uses the file compiled by @rollup/plugin-typescript for verification.

I found a library to solve this problem. You can refer to it. https://www.npmjs.com/package/rollup-plugin-eslint2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions