Skip to content

Releases: sindresorhus/eslint-plugin-unicorn

v14.0.0

29 Nov 10:00
Compare
Choose a tag to compare

New rules

Improvements

  • Extend fixers for prefer-string-slice rule (#424) 567c970
  • Add ignoreImports option to import-index rule (#421) bda7769
  • Make regex-shorthand rule use regexp-tree for regex literals (#437) 3554c17

Fixes

  • Fix prevent-abbreviations rule fixer bug (#444) fa8c80e
  • Fix custom-error-definition rule to support constructors without a body (#442) a496e96

v13.0.0...v14.0.0

v13.0.0

15 Nov 05:08
Compare
Choose a tag to compare

Breaking

  • Change some options for prevent-abbreviations rule (#422) 4d5f5cb
    The checkDefaultAndNamespaceImports and checkShorthandImports options accept a string instead of a boolean now. The default value changed from always checking to only checking internal imports (meaning local modules and not published packages).

Enhancements

Fixes

v12.1.0...v13.0.0

v12.1.0

10 Oct 19:10
Compare
Choose a tag to compare
  • Improve prefer-includes rule (#411) 32851cc
  • Set checkProperties default value to false for prevent-abbreviations (#404) d279f2a

v12.0.2...v12.1.0

v12.0.2

03 Oct 08:27
Compare
Choose a tag to compare
  • Fix an error where the rules in some situation could not be found a026ae5
  • Set allowWarningComments option default to true for expiring-todo-comments rule (#400) 5f409ff

v12.0.1...v12.0.2

v12.0.1

26 Sep 04:15
Compare
Choose a tag to compare
  • Handle lack of package.json in expiring-todo-comments rule (#397) f9f6ee6

v12.0.0...v12.0.1

v12.0.0

25 Sep 10:17
Compare
Choose a tag to compare

New rules

Enhancements

  • Update filename-case rule to handle complicated filename (#381) 871dab7
  • Update prevent-abbreviations to ignore uppercase letters (#379) 50e6655

Fixes

  • Fix the expiring-todo-comments rule for programmatic usage of ESLint (#385) b5cf874
  • Don't report no-process-exit rule in worker threads (#388) 90ca979

v11.0.2...v12.0.0

v11.0.2

22 Sep 09:10
Compare
Choose a tag to compare
  • unicorn/prefer-dataset: Fix querySelector fixer (#383) 3ba54e9

v11.0.1...v11.0.2

v11.0.1

18 Sep 19:42
Compare
Choose a tag to compare
  • consistent-function-scoping: Ignore anything containing JSX (#382) 8a999c0
  • consistent-function-scoping: Do not fail on same-scoped function references (#378) b62d96e

v11.0.0...v11.0.1

v11.0.0

16 Sep 09:40
Compare
Choose a tag to compare

New rules

Enhancements

  • Add more replacements to the prevent-abbreviations rule: 9b81e11 8ff4d91 dc8841a f500437
    • paramparameter
    • paramsparameters
    • curcurrent
    • currcurrent
    • accaccumulator
    • dirdirection
  • Add BigInt64Array and BigUint64Array types to the new-for-builtins rule (#353) e7ff2de
  • Add support for isBigInt type check to the prefer-type-error rule (#356) 186abd3
  • Refactor the prevent-abbreviations rule to handle more cases (#337) 9db361f

Fixes

  • Fix usage with eslint --stdin (#346) 5e7ac3e
  • Fix exception thrown in the catch-error-name rule (#363) 05641ba

v10.0.0...v11.0.0

v10.0.0

25 Jul 22:27
Compare
Choose a tag to compare

Breaking

New rules

Enhancements

  • Add checkFilenames option to the prevent-abbreviations rule (#336) 4c3d61c
  • Allow disabling of xo/no-abusive-eslint-disable via a comment (#308) 0fb6fcf
  • prefer-flat-map: Report for common concat pattern (#323) c2b8e76

Fixes

  • Fix exception sometimes thrown in "no-for-loop" in ES5 mode (#340) 9b076e2
  • Fix ESLint default filename (#335) e83f8ed
  • Fix false positives in the no-fn-reference-in-iterator rule (#281) 7410a1e

v9.1.1...v10.0.0