Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
fix(utils): allow an array for the values of SharedConfig#10217
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
fix(utils): allow an array for the values of SharedConfig#10217
Uh oh!
There was an error while loading.Please reload this page.
Conversation
According to the docs for ESLint an array should be allowed here, andthe type used by ESLint in their `ESLint.Plugin` interface is: Record<string, Linter.LegacyConfig | Linter.Config | Linter.Config[]> | undefinedSo we should also allow an array. The helper function `tseslint.config`returns an array so without this you're not allowed to use a configreturned by this function as a value in this record.Fixestypescript-eslint#10213
Thanks for the PR,@trygveaa! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint. |
netlifybot commentedOct 27, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview fortypescript-eslint ready!
To edit notification comments on pull requests, go to yourNetlify site configuration. |
nx-cloudbot commentedOct 27, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
☁️ Nx Cloud ReportCI is running/has finished running commands for commit013cc52. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 2 targetsSent with 💌 fromNxCloud. |
3f34490 intotypescript-eslint:mainUh oh!
There was an error while loading.Please reload this page.
* Update dependency upgrades - non-major* Fix type error with new typescript-eslint change-typescript-eslint/typescript-eslint#10217---------Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>Co-authored-by: Karl Horky <karl.horky@gmail.com>

PR Checklist
Overview
According to the docs for ESLint an array should be allowed here, and the type used by ESLint in their
ESLint.Plugininterface is:So we should also allow an array. The helper function
tseslint.configreturns an array so without this you're not allowed to use a config returned by this function as a value in this record.Fixes#10213
💖