Skip to content

Releases: sindresorhus/eslint-plugin-unicorn

v17.2.0

11 Mar 10:33
Compare
Choose a tag to compare
  • consistent-function-scoping: Check use of this and arguments (#590) 8b417e6
  • prevent-abbreviations: Fix inappropriate suggestion (#592) 2e20294
  • consistent-function-scoping: Ignore within React hooks (#588) 7126d6d
  • string-content: Ignore some TaggedTemplateExpression (#585) 92f3f3d
  • consistent-function-scoping: Display function name in error message (#589) e7e49ec
  • consistent-function-scoping: Fix uninitialized variable check (#587) 4c48c02

v17.1.0...v17.2.0

v17.1.0

10 Mar 04:07
Compare
Choose a tag to compare
  • Allow descriptive error names by default in catch-error-name rule (#581) 7bd8687

v17.0.1...v17.1.0

v17.0.1

08 Mar 18:14
Compare
Choose a tag to compare

v17.0.0...v17.0.1

v17.0.0

08 Mar 11:22
Compare
Choose a tag to compare

New rules

Breaking

  • Rename regex-shorthand rule to better-regex (#522) a5e5405

Improvements

Fixes

  • prefer-spread: Insert semicolon if needed (#578) 49c4acf
  • Fix prefer-negative-index crash on not enough arguments (#564) 50e038c
  • Fix scope compare in consistent-function-scoping (#562) ec4387c
  • Fix no-new-buffer crash on TypeScript-ESLint (#560) e4f4bb4
  • Fix escape-case missing cases (#534) 892f054
  • Disable auto-fix .onmessage in prefer-add-event-listener rule (#543) 96af562

v16.1.1...v17.0.0

v16.1.1

12 Feb 08:24
Compare
Choose a tag to compare
  • Fix escape-case fixer bug on template literals (#525) cb24d44

v16.1.0...v16.1.1

v16.1.0

11 Feb 16:56
Compare
Choose a tag to compare
  • Ensure all the rules are compatible with TypeScript-ESLint (#519) 3bff4fd

v16.0.0...v16.1.0

v16.0.0

01 Feb 11:01
Compare
Choose a tag to compare

Breaking

New rules

Improvements

Fixes

  • Fix expiring-todo-comments crashing on invalid package version (#494) fd46adc
  • Fix invalid autofix with array destructuring in no-for-loops rule (#489) 94345a3
  • prefer-modern-dom-apis: Only fix when expression is not used (#503) 096fead
  • prefer-node-remove: Only fix when expression is not used (#498) b1d3f37

v15.0.1...v16.0.0

v15.0.1

23 Dec 18:48
Compare
Choose a tag to compare
  • Fix Node.js 8 compatibility 54d3a01

v15.0.0...v15.0.1

v15.0.0

22 Dec 17:44
Compare
Choose a tag to compare

New rules

Enhancements

  • Add more prevent-abbreviations rule replacements and whitelist (#464) cfd3d49

Fixes

  • Fix invalid autofix with destructuring assignment in no-for-loops rule (#476) 44a67f1

v14.0.1...v15.0.0

v14.0.1

30 Nov 09:05
Compare
Choose a tag to compare
  • Fix crashing issues with the regex-shorthand rule (#454) db41877

v14.0.0...v14.0.1