Skip to content

Releases: Rel1cx/eslint-react

v1.21.0

20 Dec 02:29
4cccae1
Compare
Choose a tag to compare

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 of no-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

18 Dec 03:55
2d47f1c
Compare
Choose a tag to compare

What's Changed

🪄 Improvements

  • refactor(shared): replace local-pkg package with node built-in API by @Rel1cx in #881

Full Changelog: v1.20.0...v1.20.1

v1.20.0

16 Dec 12:36
138b46c
Compare
Choose a tag to compare

What's Changed

✨ New

  • feat(plugins/x): add codemod-autofix to no-component-will-* by @Rel1cx in #879

🪄 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

Full Changelog: v1.19.0...v1.20.0

v1.19.0

09 Dec 21:58
0093526
Compare
Choose a tag to compare

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 and no-context-provider to recommended presets by @Rel1cx

🪄 Improvements

  • refactor(plugins/eslint-plugin): remove prefer-read-only-props from recommended-type-checked preset by @Rel1cx in #872
  • refactor(plugins/eslint-plugin): hide avoid-shorthand-boolean and avoid-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

07 Dec 19:34
4cd77d5
Compare
Choose a tag to compare

What's Changed

✨ New

  • feat(plugins/x): add no-forward-ref rule by @Rel1cx in #870

🪄 Improvements

  • perf(plugins/dom): improve performance of no-children-in-void-dom-elements by @Rel1cx

Full Changelog: v1.17.3...v1.18.0

v1.17.3

02 Dec 19:38
bb6b0e6
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • fix(plugins/web-api): add forEach support to no-leaked-event-listener, closes #842 by @Rel1cx in #867
  • fix(plugins/web-api): add for of support to no-leaked-event-listenner, closes #842 by @Rel1cx in #869
  • fix(plugins/x): no-array-index-key mistaking foo.bar.map for React.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

01 Dec 10:40
0336f27
Compare
Choose a tag to compare

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

22 Nov 14:01
0dd349a
Compare
Choose a tag to compare

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

21 Nov 10:24
6313f98
Compare
Choose a tag to compare

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

v1.16.2

20 Nov 05:51
49507f1
Compare
Choose a tag to compare

What's Changed

🐞 Fixes

  • fix(plugins/x): 'no-leaked-conditional-rendering' report empty string, closes #853 by @Rel1cx in #857

🪄 Improvements

  • refactor: update the default behavior of import check, closes #858 by @Rel1cx in #860

Full Changelog: v1.16.1...v1.16.2