Releases: Rel1cx/eslint-react
Releases · Rel1cx/eslint-react
v1.21.0
What's Changed
✨ New
- feat(plugins/hooks-extra): add
no-useless-custom-hooks
rule by @Rel1cx
🪄 Improvements
- refactor(plugins/hooks-extra): deprecate rule
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) - docs: document active rules, closes #830 by @Rel1cx in #882
- docs: add setup instructions and example to pure JS project, closes #844 by @Rel1cx in #885
📝 Changes in Rule implementation
no-useless-custom-hooks
now detects Hook calls within comments and the following code no longer triggers a warning:
// ✅ Good: A Hook that will likely use some other Hooks later
function useAuth() {
// TODO: Replace with this line when authentication is implemented:
// return useContext(Auth);
return TEST_USER;
}
Full Changelog: v1.20.1...v1.21.0
v1.20.1
v1.20.0
What's Changed
✨ New
🪄 Improvements
- refactor: use default settings when no settings are provided in
settings["react-x"]
by @Rel1cx in 40ca3bd - docs: update
no-context-provider.mdx
by @danielrentz in #877 - docs: add 'Min. React' column to rules overview page by @Rel1cx in #880
- docs: add features section to rules overview page by @Rel1cx
New Contributors
- @danielrentz made their first contribution in #877
Full Changelog: v1.19.0...v1.20.0
v1.19.0
What's Changed
✨ New
- feat(plugins/x): add
no-context-provider
rule by @Rel1cx - feat(plugins/x): add autofix for
no-forward-ref
rule by @Rel1cx in #874 - feat(plugins/eslint-plugin): add
no-forward-ref
andno-context-provider
to recommended presets by @Rel1cx
🪄 Improvements
- refactor(plugins/eslint-plugin): remove
prefer-read-only-props
fromrecommended-type-checked
preset by @Rel1cx in #872 - refactor(plugins/eslint-plugin): hide
avoid-shorthand-boolean
andavoid-shorthand-fragment
from presets and docs by @Rel1cx in #876 - Update
@typescript-eslint
's packages to^8.18.0
Full Changelog: v1.18.0...v1.19.0
v1.18.0
v1.17.3
What's Changed
🐞 Fixes
- fix(plugins/web-api): add
forEach
support tono-leaked-event-listener
, closes #842 by @Rel1cx in #867 - fix(plugins/web-api): add
for of
support tono-leaked-event-listenner
, closes #842 by @Rel1cx in #869 - fix(plugins/x):
no-array-index-key
mistakingfoo.bar.map
forReact.Children.map
method by @Rel1cx in #868
🪄 Improvements
- Update
@typescript-eslint
's packages to^8.17.0
Full Changelog: v1.17.2...v1.17.3
v1.17.2
What's Changed
🪄 Improvements
- Update
eslint
's packages to^9.16.0
- Update
@typescript-eslint
's packages to^8.16.0
- Update
ts-api-utils
to^2.0.0
Full Changelog: v1.17.1...v1.17.2
v1.17.1
What's Changed
✨ New
- feat(shared): add version detection logic;
🐞 Fixes
- fix(plugins/x): 'no-leaked-conditional-rendering' should also warn 'anyStringVar' when react version is lower than 18, closes #853 by @Rel1cx in #864
- fix(plugins/dom): add popover api props to 'no-unknown-property', closes #855 by @Rel1cx in #865
- fix(plugins/debug): 'is-from-react' use correct settings when calling 'isInitializedFromReact', by @Rel1cx
Full Changelog: v1.17.0...v1.17.1
v1.17.0
What's Changed
✨ New
- feat(plugins/naming-convention): add 'ignoreFilesWithoutCode' option to 'filename-extension'
🐞 Fixes
- refactor(plugins/x): xhtml entities should be allowed inside of 'no-useless-fragment', closes: #850
- fix(plugins/eslint-plugin): unexpected top-level property 'name' in legacy presets, closes #863
- fix(plugins/eslint-plugin): rules list in 'debug' and 'disable-debug' presets
Full Changelog: v1.16.2...v1.17.0