-
-
Notifications
You must be signed in to change notification settings - Fork 195
feat(types): prefer Config
over FlatConfig
when they're equal
#674
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
feat(types): prefer Config
over FlatConfig
when they're equal
#674
Conversation
🦋 Changeset detectedLatest commit: 42abb5d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@irsooti I tried your change but maybe it's because I use the
Edit: |
That's not same thing, eslint-plugin-prettier/recommended.js Lines 5 to 17 in aa5b59f
|
This would be a breaking change for eslint v8 users. |
It's working for me without my workaround since some time. |
7cc0835
to
4d2e086
Compare
WalkthroughA new changeset file was added to document a minor update to the Changes
Sequence Diagram(s)sequenceDiagram
participant Developer
participant TypeSystem
Developer->>TypeSystem: Reference recommendedConfig
TypeSystem->>TypeSystem: Evaluate IfEqual<Linter.Config, Linter.FlatConfig, Linter.Config, Linter.FlatConfig>
alt Types are equal
TypeSystem-->>Developer: recommendedConfig is Linter.Config
else Types are not equal
TypeSystem-->>Developer: recommendedConfig is Linter.FlatConfig
end
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
FlatConfig
to Config
Config
over FlatConfig
when they're equal
Config
over FlatConfig
when they're equalConfig
over FlatConfig
when they're equal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.changeset/lucky-badgers-judge.md
(1 hunks)recommended.d.ts
(1 hunks)
🔇 Additional comments (1)
.changeset/lucky-badgers-judge.md (1)
1-6
: Changelog entry looks goodThe changeset correctly records a minor version bump and concisely describes the type-system tweak. No action required.
c9a7436
to
89704c3
Compare
89704c3
to
42abb5d
Compare
@coderabbitai full review |
✅ Actions performedFull review triggered. |
| datasource | package | from | to | | ---------- | ---------------------- | ----- | ----- | | npm | eslint-plugin-prettier | 5.2.3 | 5.3.1 | ## [v5.3.1](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#531) ##### Patch Changes - [#734](prettier/eslint-plugin-prettier#734) [`dcf2c80`](prettier/eslint-plugin-prettier@dcf2c80) Thanks [@JounQin](https://github.com/JounQin)! - ci: enable `NPM_CONFIG_PROVENANCE` env ## [v5.3.0](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#530) ##### Minor Changes - [#674](prettier/eslint-plugin-prettier#674) [`6fe0c90`](prettier/eslint-plugin-prettier@6fe0c90) Thanks [@irsooti](https://github.com/irsooti)! - feat(types): prefer `Config` over `FlatConfig` when they're equal ## [v5.2.6](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#526) ##### Patch Changes - [#723](prettier/eslint-plugin-prettier#723) [`1451176`](prettier/eslint-plugin-prettier@1451176) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): bump `synckit` to `v0.11.0` ## [v5.2.5](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#525) ##### Patch Changes - [#721](prettier/eslint-plugin-prettier#721) [`4f5513d`](prettier/eslint-plugin-prettier@4f5513d) Thanks [@JounQin](https://github.com/JounQin)! - fix: clarify correct `eslint-config-prettier` peer range ## [v5.2.4](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#524) ##### Patch Changes - [#715](prettier/eslint-plugin-prettier#715) [`b8cfe56`](prettier/eslint-plugin-prettier@b8cfe56) Thanks [@JounQin](https://github.com/JounQin)! - chore: hourcekeeping, bump all (dev) deps
| datasource | package | from | to | | ---------- | ---------------------- | ----- | ----- | | npm | eslint-plugin-prettier | 5.2.3 | 5.3.1 | ## [v5.3.1](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#531) ##### Patch Changes - [#734](prettier/eslint-plugin-prettier#734) [`dcf2c80`](prettier/eslint-plugin-prettier@dcf2c80) Thanks [@JounQin](https://github.com/JounQin)! - ci: enable `NPM_CONFIG_PROVENANCE` env ## [v5.3.0](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#530) ##### Minor Changes - [#674](prettier/eslint-plugin-prettier#674) [`6fe0c90`](prettier/eslint-plugin-prettier@6fe0c90) Thanks [@irsooti](https://github.com/irsooti)! - feat(types): prefer `Config` over `FlatConfig` when they're equal ## [v5.2.6](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#526) ##### Patch Changes - [#723](prettier/eslint-plugin-prettier#723) [`1451176`](prettier/eslint-plugin-prettier@1451176) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): bump `synckit` to `v0.11.0` ## [v5.2.5](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#525) ##### Patch Changes - [#721](prettier/eslint-plugin-prettier#721) [`4f5513d`](prettier/eslint-plugin-prettier@4f5513d) Thanks [@JounQin](https://github.com/JounQin)! - fix: clarify correct `eslint-config-prettier` peer range ## [v5.2.4](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#524) ##### Patch Changes - [#715](prettier/eslint-plugin-prettier#715) [`b8cfe56`](prettier/eslint-plugin-prettier@b8cfe56) Thanks [@JounQin](https://github.com/JounQin)! - chore: hourcekeeping, bump all (dev) deps
| datasource | package | from | to | | ---------- | ---------------------- | ----- | ----- | | npm | eslint-plugin-prettier | 5.2.3 | 5.4.0 | ## [v5.4.0](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#540) ##### Minor Changes - [#736](prettier/eslint-plugin-prettier#736) [`59a0cae`](prettier/eslint-plugin-prettier@59a0cae) Thanks [@yashtech00](https://github.com/yashtech00)! - refactor: migrate `worker.js` to `worker.mjs` ## [v5.3.1](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#531) ##### Patch Changes - [#734](prettier/eslint-plugin-prettier#734) [`dcf2c80`](prettier/eslint-plugin-prettier@dcf2c80) Thanks [@JounQin](https://github.com/JounQin)! - ci: enable `NPM_CONFIG_PROVENANCE` env ## [v5.3.0](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#530) ##### Minor Changes - [#674](prettier/eslint-plugin-prettier#674) [`6fe0c90`](prettier/eslint-plugin-prettier@6fe0c90) Thanks [@irsooti](https://github.com/irsooti)! - feat(types): prefer `Config` over `FlatConfig` when they're equal ## [v5.2.6](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#526) ##### Patch Changes - [#723](prettier/eslint-plugin-prettier#723) [`1451176`](prettier/eslint-plugin-prettier@1451176) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): bump `synckit` to `v0.11.0` ## [v5.2.5](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#525) ##### Patch Changes - [#721](prettier/eslint-plugin-prettier#721) [`4f5513d`](prettier/eslint-plugin-prettier@4f5513d) Thanks [@JounQin](https://github.com/JounQin)! - fix: clarify correct `eslint-config-prettier` peer range ## [v5.2.4](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#524) ##### Patch Changes - [#715](prettier/eslint-plugin-prettier#715) [`b8cfe56`](prettier/eslint-plugin-prettier@b8cfe56) Thanks [@JounQin](https://github.com/JounQin)! - chore: hourcekeeping, bump all (dev) deps
| datasource | package | from | to | | ---------- | ---------------------- | ----- | ----- | | npm | eslint-plugin-prettier | 5.2.3 | 5.4.0 | ## [v5.4.0](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#540) ##### Minor Changes - [#736](prettier/eslint-plugin-prettier#736) [`59a0cae`](prettier/eslint-plugin-prettier@59a0cae) Thanks [@yashtech00](https://github.com/yashtech00)! - refactor: migrate `worker.js` to `worker.mjs` ## [v5.3.1](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#531) ##### Patch Changes - [#734](prettier/eslint-plugin-prettier#734) [`dcf2c80`](prettier/eslint-plugin-prettier@dcf2c80) Thanks [@JounQin](https://github.com/JounQin)! - ci: enable `NPM_CONFIG_PROVENANCE` env ## [v5.3.0](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#530) ##### Minor Changes - [#674](prettier/eslint-plugin-prettier#674) [`6fe0c90`](prettier/eslint-plugin-prettier@6fe0c90) Thanks [@irsooti](https://github.com/irsooti)! - feat(types): prefer `Config` over `FlatConfig` when they're equal ## [v5.2.6](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#526) ##### Patch Changes - [#723](prettier/eslint-plugin-prettier#723) [`1451176`](prettier/eslint-plugin-prettier@1451176) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): bump `synckit` to `v0.11.0` ## [v5.2.5](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#525) ##### Patch Changes - [#721](prettier/eslint-plugin-prettier#721) [`4f5513d`](prettier/eslint-plugin-prettier@4f5513d) Thanks [@JounQin](https://github.com/JounQin)! - fix: clarify correct `eslint-config-prettier` peer range ## [v5.2.4](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#524) ##### Patch Changes - [#715](prettier/eslint-plugin-prettier#715) [`b8cfe56`](prettier/eslint-plugin-prettier@b8cfe56) Thanks [@JounQin](https://github.com/JounQin)! - chore: hourcekeeping, bump all (dev) deps
| datasource | package | from | to | | ---------- | ---------------------- | ----- | ----- | | npm | eslint-plugin-prettier | 5.2.3 | 5.4.0 | ## [v5.4.0](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#540) ##### Minor Changes - [#736](prettier/eslint-plugin-prettier#736) [`59a0cae`](prettier/eslint-plugin-prettier@59a0cae) Thanks [@yashtech00](https://github.com/yashtech00)! - refactor: migrate `worker.js` to `worker.mjs` ## [v5.3.1](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#531) ##### Patch Changes - [#734](prettier/eslint-plugin-prettier#734) [`dcf2c80`](prettier/eslint-plugin-prettier@dcf2c80) Thanks [@JounQin](https://github.com/JounQin)! - ci: enable `NPM_CONFIG_PROVENANCE` env ## [v5.3.0](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#530) ##### Minor Changes - [#674](prettier/eslint-plugin-prettier#674) [`6fe0c90`](prettier/eslint-plugin-prettier@6fe0c90) Thanks [@irsooti](https://github.com/irsooti)! - feat(types): prefer `Config` over `FlatConfig` when they're equal ## [v5.2.6](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#526) ##### Patch Changes - [#723](prettier/eslint-plugin-prettier#723) [`1451176`](prettier/eslint-plugin-prettier@1451176) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): bump `synckit` to `v0.11.0` ## [v5.2.5](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#525) ##### Patch Changes - [#721](prettier/eslint-plugin-prettier#721) [`4f5513d`](prettier/eslint-plugin-prettier@4f5513d) Thanks [@JounQin](https://github.com/JounQin)! - fix: clarify correct `eslint-config-prettier` peer range ## [v5.2.4](https://github.com/prettier/eslint-plugin-prettier/blob/HEAD/CHANGELOG.md#524) ##### Patch Changes - [#715](prettier/eslint-plugin-prettier#715) [`b8cfe56`](prettier/eslint-plugin-prettier@b8cfe56) Thanks [@JounQin](https://github.com/JounQin)! - chore: hourcekeeping, bump all (dev) deps
Hello,
the type

FlatConfig
has been replaced withConfig
, according to the deprecation warning.I just changed the type with the suggested one.
Cheers!
Summary by CodeRabbit
Config
type overFlatConfig
when both are equivalent in the configuration.