Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make
recommended
config a valid flat config (#462)
<!-- 👋 Hi, thanks for sending a PR to eslint-plugin-expect-type! 💖. Please fill out all fields below and make sure each item is true and [x] checked. Otherwise we may not be able to review your PR. --> ## PR Checklist - [X] Addresses an existing open issue: fixes #142 - [X] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/eslint-plugin-expect-type/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [X] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/eslint-plugin-expect-type/blob/main/.github/CONTRIBUTING.md) were taken ## Overview <!-- Description of what is changed and how the code change does that. --> This PR updates the `recommended` config to make it a valid flat config. Currently, the `recommended` config's `plugins` field is an array, and thus this config cannot be used in flat mode, where `plugins` is expected to be an object. It looks like the readme file already contains instructions for embedding the `recommended` config in a flat config file, but the `recommended` config itself hasn't been updated yet. ```js import expectType from "eslint-plugin-expect-type/configs/recommended"; export default [ // your other ESLint configurations expectType, ]; ``` I noticed this problem while working on eslint/eslint#18869.
- Loading branch information