Skip to content

swc.vite: loose "any" type #347

@karlismelderis-mckinsey

Description

Describe the bug

this configuration is returning any:

    swc.vite({
      tsconfigFile: './tsconfig.json',
    }),

and it fails @typescript-eslint/no-unsafe-assignment eslint rule

this config ends with ESLint: Unsafe assignment of type any[]to a variable of typePluginOption[]``

  plugins: [ 
    swc.vite({
      tsconfigFile: './tsconfig.json',
    }),
  ],

would it be possible to improve return types of swc.vite?

Reproduction

I hope I put all in the example

System Info

I'm using:
"unplugin-swc": "1.5.9"

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions