github sindresorhus/eslint-plugin-unicorn v34.0.0

latest releases: v56.0.0, v55.0.0, v54.0.0...
3 years ago

New rules

Improvements

  • prefer-module: Ignore .cjs files (#1355) ebdc3c2
  • error-message: Support AggregateError (#1351) e7b4300
  • filename-case: Enforce lowercased file extension (#1336) 119615b
  • expiring-todo-comments: More helpful error when no conditions (#1375) 914a996
  • prefer-array-some and prefer-regexp-test: Support Vue SFC (#1364) a46050e
  • explicit-length-check: Support v-show directive (#1363) f163c4a
  • explicit-length-check: Support Vue SFC files (#1360) 9199611
  • prefer-type-error: Improve report location (#1354) bc3d58b
  • no-useless-undefined: Ignore Set#add() Map#set() Array#{push,unshift}() (#1353) c6359c3
  • prefer-prototype-methods: Only check methods from [] and {} (#1347) 29a4e75
  • prefer-array-some: Report non-zero check on array.filter().length (#1337) f8aaac2
  • Use context.getPhysicalFilename() (#1344) e2540cb

Fixes

  • prefer-array-find and prefer-at: Fix crash on LHS zero index access (#1373) da1f6d8
  • prefer-prototype-methods: Fix a missing condition on object literal check (#1332) cec7f11

v33.0.1...v34.0.0

Don't miss a new eslint-plugin-unicorn release

NewReleases is sending notifications on new releases.