Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !33700

Bump eslint-plugin-unicorn from 29.0.0 to 30.0.0

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge dependabot/npm_and_yarn/eslint-plugin-unicorn-30.0.0 into main Apr 20, 2021
  • Overview 1
  • Commits 2
  • Pipelines 0
  • Changes 2

Created by: dependabot[bot]

Bumps eslint-plugin-unicorn from 29.0.0 to 30.0.0.

Release notes

Sourced from eslint-plugin-unicorn's releases.

v30.0.0

New rules

  • prefer-switch (#1181) 10e7a0c

Breaking

  • prevent-abbreviations: Rename options (#1164) cf42cc5
  • no-keyword-prefix: Rename blacklist option to disallowedPrefixes (#1180) 91e60d0

Improvements

  • no-array-push-push: Add ignore option (#1168) f9262d9
  • prefer-spread: Report array.slice(0) (#1182) 92bebe1
  • no-useless-undefined: Handle parenthesized undefined (#1178) c88882e
  • no-array-for-each: Improve fixable parameter detection (#1177) 18d1ac2
  • prefer-array-flat-map: Exclude React.Children.map().flat() (#1159) 3e6b6fb
  • better-regex: Report parsing errors (#1133) 51ee030
  • filename-case: Uniquify suggestion filenames (#1160) a87238f
  • Support PropertyDefinition (#1127) 75c4d78

Fixes

  • prefer-number-properties: Fix some edge cases (#1170) e7e25b8
  • prefer-number-properties: Fix some edge cases (part 2) (#1176) 3a58802
  • prefer-regexp-test: Do not fix if regexp has g flag (#1173) 8d97beb
  • no-array-for-each: Do not fix if callback parameter has type annotation (#1167) 0d4fc8b
  • no-useless-undefined: Do not report return undefined if function has returnType (#1165) 4ff39e0
  • prefer-set-has: Use suggestions if node has type annotation (#1158) 1221185
  • no-null: Exclude second argument of Node.insertBefore() (#1157) b16c316
  • prefer-add-event-listener: Fix crash on parenthesized cases (#1153) c95e854
  • Fix optional MemberExpression check when using ecmaVersion: 2019 (#1151) 56d5d9a
  • prefer-regexp-test: Do not fix if argument of String#match() is known not RegExp (#1152) 0abc394

https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v29.0.0...v30.0.0

Commits
  • 0af4c72 30.0.0
  • 10e7a0c Add prefer-switch rule (#1181)
  • 3521a0a Update eslint-plugin-eslint-plugin (#1185)
  • c88882e no-useless-undefined: Handle parenthesized undefined (#1178)
  • 92bebe1 prefer-spread: Report array.slice(0) (#1182)
  • f969970 Add JSDoc to rule template (#1183)
  • 42cfd8e Update create-rule script (#1184)
  • 91e60d0 no-keyword-prefix: Rename blacklist option to disallowedPrefixes (#1180)
  • de2602e Use @babel/eslint-parser in integration tests (#1179)
  • ccda941 Add auto-generated rules table to the readme (#1155)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: dependabot/npm_and_yarn/eslint-plugin-unicorn-30.0.0