-
Notifications
You must be signed in to change notification settings - Fork 0
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(deps): update eslint rule and plugin updates #213
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63edfff
to
fbc2ffa
Compare
fbc2ffa
to
d370a72
Compare
d370a72
to
8bfa1fb
Compare
8bfa1fb
to
9926b7c
Compare
9926b7c
to
f826511
Compare
f826511
to
f75f7ad
Compare
f75f7ad
to
339eb46
Compare
339eb46
to
921fea7
Compare
921fea7
to
9c6a5aa
Compare
9c6a5aa
to
ba7d18d
Compare
ba7d18d
to
03aa0d8
Compare
03aa0d8
to
208860b
Compare
208860b
to
15983b7
Compare
15983b7
to
72fd8a7
Compare
72fd8a7
to
98d0d1b
Compare
98d0d1b
to
372b368
Compare
372b368
to
8a2cb26
Compare
8a2cb26
to
b199a37
Compare
b199a37
to
731ba98
Compare
731ba98
to
3727413
Compare
2983522
to
8657572
Compare
8657572
to
bc02316
Compare
bc02316
to
d82b577
Compare
d82b577
to
81330d0
Compare
81330d0
to
0bee7d8
Compare
0bee7d8
to
ee22bf8
Compare
ee22bf8
to
d8b83fe
Compare
d8b83fe
to
b315763
Compare
b315763
to
b61b9cb
Compare
b61b9cb
to
c525e8f
Compare
c525e8f
to
74c022c
Compare
74c022c
to
f0ce453
Compare
f0ce453
to
38f50a1
Compare
38f50a1
to
9d9a90c
Compare
9d9a90c
to
b8be5b6
Compare
b8be5b6
to
044c06a
Compare
044c06a
to
b67f829
Compare
b67f829
to
4128ee2
Compare
4128ee2
to
788f6ee
Compare
788f6ee
to
063b448
Compare
063b448
to
8f74442
Compare
8f74442
to
14b8e48
Compare
14b8e48
to
a11c786
Compare
a11c786
to
a7c6746
Compare
a7c6746
to
b4b6392
Compare
frantic1048
approved these changes
Dec 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.17.1
->1.22.1
2.11.0
->2.12.1
8.16.0
->8.18.2
8.16.0
->8.18.2
8.16.0
->8.18.2
3.6.3
->3.7.0
6.3.2
->6.4.0
4.4.3
->4.6.1
17.14.0
->17.15.1
5.0.0
->5.1.0
8.16.0
->8.18.2
Release Notes
Rel1cx/eslint-react (@eslint-react/eslint-plugin)
v1.22.1
Compare Source
🪄 Improvements
eslint.config.js
examples in README.md, docs and the examples folder.📝 Changes in examples
The
eslint.config.js
in the examples now usestsconfig
'sincludes
andexcludes
as the SSoT glob patterns for ESLint'sfiles
andignores
fields.This approach can fundamentally avoid the errors[1, 2, 3] caused by mismatched config scopes between
tsconfig.json
andeslint.config.js
.v1.22.0
Compare Source
🪄 Improvements
jsx-use-vars
touse-jsx-vars
.jsx-no-duplicate-props
tono-duplicate-jsx-props
.no-children-in-void-dom-elements
tono-void-elements-with-children
.📝 Changes you should be aware of
The following rules have been renamed:
jsx-uses-vars
touse-jsx-vars
.jsx-no-duplicate-props
tono-duplicate-jsx-props
.dom/no-children-in-void-dom-elements
todom/no-void-elements-with-children
.The new rule names are aligned with the same rules in the biomejs/rules-sources/#eslint-plugin-react (if any) to enhance consistency. The old rule names will still be available until the next major update to avoid breaking changes.
v1.21.0
Compare Source
✨ New
no-useless-custom-hooks
rule by @Rel1cx🪄 Improvements
no-redundant-custom-hook
in favor ofno-useless-custom-hooks
(the previous rule will still be available until the next major update to avoid breaking changes).📝 Changes in Rule implementation
no-useless-custom-hooks
now detects Hook calls within comments and the following code no longer triggers a warning:v1.20.1
Compare Source
🪄 Improvements
local-pkg
package with node built-in API by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/881v1.20.0
Compare Source
✨ New
no-component-will-*
by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/879🪄 Improvements
settings["react-x"]
by @Rel1cx in Rel1cx/eslint-react@40ca3bdno-context-provider.mdx
by @danielrentz in https://github.com/Rel1cx/eslint-react/pull/877v1.19.0
Compare Source
✨ New
no-context-provider
rule by @Rel1cxno-forward-ref
rule by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/874no-forward-ref
andno-context-provider
to recommended presets by @Rel1cx🪄 Improvements
prefer-read-only-props
fromrecommended-type-checked
preset by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/872avoid-shorthand-boolean
andavoid-shorthand-fragment
from presets and docs by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/876@typescript-eslint
's packages to^8.18.0
.v1.18.0
Compare Source
✨ New
no-forward-ref
rule by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/870🪄 Improvements
no-children-in-void-dom-elements
by @Rel1cxv1.17.3
Compare Source
🐞 Fixes
🪄 Improvements
@typescript-eslint
's packages to^8.17.0
.v1.17.2
Compare Source
🪄 Improvements
eslint
's packages to^9.16.0
.@typescript-eslint
's packages to^8.16.0
.ts-api-utils
to^2.0.0
.eslint-stylistic/eslint-stylistic (@stylistic/eslint-plugin)
v2.12.1
Compare Source
Features
offsetTernaryExpressionsOffsetCallExpressions
options (#636) (c14a3ee)Documentation
Chores
v2.12.0
Compare Source
Bug Fixes
CallExpression
whenoffsetTernaryExpressions
is true (#625) (55d3529)Documentation
Chores
typescript-eslint/typescript-eslint (@typescript-eslint/parser)
v8.18.2
Compare Source
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our versioning strategy and releases on our website.
v8.18.1
Compare Source
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our versioning strategy and releases on our website.
v8.18.0
Compare Source
🩹 Fixes
❤️ Thank You
You can read about our versioning strategy and releases on our website.
v8.17.0
Compare Source
This was a version bump only for parser to align it with other projects, there were no code changes.
You can read about our versioning strategy and releases on our website.
typescript-eslint/typescript-eslint (@typescript-eslint/rule-tester)
v8.18.2
Compare Source
This was a version bump only for rule-tester to align it with other projects, there were no code changes.
You can read about our versioning strategy and releases on our website.
v8.18.1
Compare Source
This was a version bump only for rule-tester to align it with other projects, there were no code changes.
You can read about our versioning strategy and releases on our website.
v8.18.0
Compare Source
This was a version bump only for rule-tester to align it with other projects, there were no code changes.
You can read about our versioning strategy and releases on our website.
v8.17.0
Compare Source
This was a version bump only for rule-tester to align it with other projects, there were no code changes.
You can read about our versioning strategy and releases on our website.
typescript-eslint/typescript-eslint (@typescript-eslint/utils)
v8.18.2
Compare Source
This was a version bump only for utils to align it with other projects, there were no code changes.
You can read about our versioning strategy and releases on our website.
v8.18.1
Compare Source
This was a version bump only for utils to align it with other projects, there were no code changes.
You can read about our versioning strategy and releases on our website.
v8.18.0
Compare Source
🩹 Fixes
❤️ Thank You
You can read about our versioning strategy and releases on our website.
v8.17.0
Compare Source
This was a version bump only for utils to align it with other projects, there were no code changes.
You can read about our versioning strategy and releases on our website.
import-js/eslint-import-resolver-typescript (eslint-import-resolver-typescript)
v3.7.0
Compare Source
Minor Changes
#326
93ea130
Thanks @SukkaW! - This version has implemented theeslint-plugin-import-x
's v3 resolver interface. This allows you to use import/require to referenceeslint-import-resolver-typescript
directly in your ESLint flat config:Previously
Now
Note that this only works with
eslint-plugin-import-x@>=4.5.0
. You can't usecreateTypeScriptImportResolver
with the older versions ofeslint-plugin-import-x
or any existing versions ofeslint-plugin-import
.eslint-community/eslint-plugin-eslint-plugin (eslint-plugin-eslint-plugin)
v6.4.0
Compare Source
Features
no-meta-schema-default
rule (#503) (dbd96b2)require-meta-default-options
rule (#502) (13e625a)require-meta-docs-recommended
rule (#500) (8fda55a)un-ts/eslint-plugin-import-x (eslint-plugin-import-x)
v4.6.1
Compare Source
Patch Changes
be9c3e8
Thanks @mrginglymus! - Fix enhanced-resolve dependencyv4.6.0
Compare Source
Minor Changes
#209
46d2360
Thanks @SukkaW! - Wheneslint-plugin-import-x
was forked fromeslint-plugin-import
, we copied over the default resolver (which iseslint-import-resolver-node
) as well. However, this resolver doesn't supportsexports
in thepackage.json
file, and the current maintainer of theeslint-import-resolver-node
(ljharb) doesn't have the time implementing this feature and he locked the issue https://github.com/import-js/eslint-plugin-import/issues/1810.So we decided to implement our own resolver that "just works". The new resolver is built upon the
enhanced-resolve
that implements the full Node.js Resolver Algorithm. The new resolver only implements the import resolver interface v3, which means you can only use it with ESLint Flat config. For more details about the import resolver interface v3, please check out #192.In the next major version of
eslint-plugin-import-x
, we will remove theeslint-import-resolver-node
and use this new resolver by default. In the meantime, you can try out this new resolver by setting theimport-x/resolver-next
option in youreslint.config.js
file:We do not plan to implement reading
baseUrl
andpaths
from thetsconfig.json
file in this resolver. If you need this feature, please checkout eslint-import-resolver-typescript (also powered byenhanced-resolve
), eslint-import-resolver-oxc (powered byoxc-resolver
), eslint-import-resolver-next (also powered byoxc-resolver
), or other similar resolvers.Patch Changes
449738f
Thanks @privatenumber! - insert type prefix without new linev4.5.1
Compare Source
Patch Changes
#198
ac6d2e1
Thanks @voxpelli! - Fix #197 with missing types#204
32e9b55
Thanks @privatenumber! - fix type-import and value-import merging when import-as is usedv4.5.0
Compare Source
Minor Changes
fbf639b
Thanks @SukkaW! - The PR implements the new resolver design proposed in https://github.com/un-ts/eslint-plugin-import-x/issues/40#issuecomment-2381444266For
eslint-plugin-import-x
usersLike the ESLint flat config allows you to use js objects (e.g. import and require) as ESLint plugins, the new
eslint-plugin-import-x
resolver settings allow you to use js objects as custom resolvers through the new settingimport-x/resolver-next
:The new
import-x/resolver-next
no longer accepts strings as the resolver, thus will not be compatible with the ESLint legacy config (a.k.a..eslintrc
). Those who are still using the ESLint legacy config should stick withimport-x/resolver
.In the next major version of
eslint-plugin-import-x
(v5), we will rename the currently existingimport-x/resolver
toimport-x/resolver-legacy
(which allows the existing ESLint legacy config users to use their existing resolver settings), andimport-x/resolver-next
will become the newimport-x/resolver
. When ESLint v9 (the last ESLint version with ESLint legacy config support) reaches EOL in the future, we will removeimport-x/resolver-legacy
.We have also made a few breaking changes to the new resolver API design, so you can't use existing custom resolvers directly with
import-x/resolver-next
:For easier migration, the PR also introduces a compat utility
importXResolverCompat
that you can use in youreslint.config.js
:For custom import resolver developers
This is the new API design of the resolver interface:
You will be able to import
NewResolver
fromeslint-plugin-import-x/types
.The most notable change is that
eslint-plugin-import-x
no longer passes the third argument (options
) to theresolve
function.We encourage custom resolvers' authors to consume the options outside the actual
resolve
function implementation. You can export a factory function to accept the options, this factory function will then be called inside theeslint.config.js
to get the actual resolver:This allows you to create a reusable resolver instance to improve the performance. With the existing version of the resolver interface, because the options are passed to the
resolver
function, you will have to create a resolver instance every time theresolve
function is called:With the factory function pattern, you can create a resolver instance beforehand:
Patch Changes
#184
bc4de89
Thanks @marcalexiei! - fix(no-cycle): improves the type declaration of the ruleno-cycle
’smaxDepth
option#184
bc4de89
Thanks @marcalexiei! - fix(first): improves the type declaration of the rulefirst
's option#184
bc4de89
Thanks @marcalexiei! - fix(no-unused-modules): improves the type declaration of the ruleno-unused-modules
’smissingExports
option#184
bc4de89
Thanks @marcalexiei! - fix(no-deprecated): improve error message when no description is availableeslint-community/eslint-plugin-n (eslint-plugin-n)
v17.15.1
Compare Source
🩹 Fixes
v17.15.0
Compare Source
🌟 Features
🩹 Fixes
facebook/react (eslint-plugin-react-hooks)
v5.1.0
Compare Source
typescript-eslint/typescript-eslint (typescript-eslint)
v8.18.2
Compare Source
🩹 Fixes
❤️ Thank You
You can read about our versioning strategy and releases on our website.
v8.18.1
Compare Source
This was a version bump only for typescript-eslint to align it with other projects, there were no code changes.
You can read about our versioning strategy and releases on our website.
v8.18.0
Compare Source
🩹 Fixes
❤️ Thank You
You can read about our versioning strategy and releases on our website.
v8.17.0
Compare Source
This was a version bump only for typescript-eslint to align it with other projects, there were no code changes.
You can read about our versioning strategy and releases on our website.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.