Skip to content

v24.0.0

Compare
Choose a tag to compare
@sindresorhus sindresorhus released this 17 Dec 10:30

New rules

Improvements

  • prevent-abbreviations: Add ignore option (#891) 898fcb4
  • no-useless-undefined: Add checkArguments option (#877) a1617b9
  • consistent-function-scoping: Allow ignoring arrow functions (#932) 17bf27c
  • Rewrite error-message rule (#922) 877bef9
  • Improve prefer-query-selector rule (#908) 635601d
  • prevent-abbreviations: Add var/vars replacements (#894) 07dadf5
  • prevent-abbreviations: Add verversion replacement (#870) e755cdd
  • prefer-number-properties: Support computed key of ClassProperty MethodDefinition Property (#886) 769ac35
  • prefer-optional-catch-binding: Improve output (#884) 375d11a
  • no-null: Exclude useRef(null) and React.useRef(null) (#890) 7a4dbf4
  • prefer-number-properties: Add Infinity support (#874) 643169b
  • no-console-spaces: Improve report location (#866) 190cbac
  • no-useless-undefined: Ignore toHaveBeenCalledWith method (#876) d10a641
  • prefer-replace-all: Handle u flag (#879) d98d867
  • no-for-loop: Improve output when using the TypeScript parser (#883) 52edd3b
  • no-for-loop: Respect declaration kind (#878) df3f7bd
  • no-for-loop: Only report on the for loop head part (#885) e9c6963

Fixes

  • Fix false import styles seen in reported problem messages (#910) d669707
  • import-style: Fix crash on babel-eslint parser (#927) 9f5f721
  • prevent-abbreviations: Fix crash with TypeScript parser (#913) 9d5eca6
  • prefer-query-selector: Fix crash on calling without argument (#906) 36908da
  • import-style: Fix crash on destructing require (#904) 8335d41
  • new-for-builtins: Remove auto-fix for new String, new Boolean(), and new Number() (#907) dfc1ce0

v23.0.0...v24.0.0