Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type issue when passed to tseslint.config #245

Open
adamhl8 opened this issue Feb 2, 2025 · 0 comments
Open

type issue when passed to tseslint.config #245

adamhl8 opened this issue Feb 2, 2025 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@adamhl8
Copy link

adamhl8 commented Feb 2, 2025

When passing any of the flat configs to tseslint.config, there is a TypeScript error due to the files property being possibly undefined:

export default tseslint.config(
  toml.configs["flat/standard"],
)
Types of property 'files' are incompatible.
  Type 'undefined' is not assignable to type '(string | string[])[]'

This seems to just be an issue with the types because the files property is definitely defined correctly in the base config.

@ota-meshi ota-meshi added the help wanted Extra attention is needed label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants