-
-
Notifications
You must be signed in to change notification settings - Fork 2.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 our terms of service and privacy 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
Conversation
According to the docs for ESLint an array should be allowed here, and the type used by ESLint in their `ESLint.Plugin` interface is: Record<string, Linter.LegacyConfig | Linter.Config | Linter.Config[]> | undefined So we should also allow an array. The helper function `tseslint.config` returns an array so without this you're not allowed to use a config returned by this function as a value in this record. Fixes typescript-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 on https://opencollective.com/typescript-eslint. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 013cc52. 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 💌 from NxCloud. |
* 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.Plugin
interface is:So we should also allow an array. The helper function
tseslint.config
returns 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
💖