Skip to content

Commit

Permalink
Bump eslint-plugin-unicorn from 28.0.2 to 29.0.0 (#33435)
Browse files Browse the repository at this point in the history
* Bump eslint-plugin-unicorn from 28.0.2 to 29.0.0

Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 28.0.2 to 29.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](sindresorhus/eslint-plugin-unicorn@v28.0.2...v29.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Fix lint failure

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
  • Loading branch information
dependabot[bot] and XhmikosR committed Mar 23, 2021
1 parent b455390 commit 9667438
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
8 changes: 3 additions & 5 deletions js/src/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,9 @@ class Carousel extends BaseComponent {

const move = event => {
// ensure swiping with one touch and not pinching
if (event.touches && event.touches.length > 1) {
this.touchDeltaX = 0
} else {
this.touchDeltaX = event.touches[0].clientX - this.touchStartX
}
this.touchDeltaX = event.touches && event.touches.length > 1 ?
0 :
event.touches[0].clientX - this.touchStartX
}

const end = event => {
Expand Down
30 changes: 18 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"eslint": "^7.22.0",
"eslint-config-xo": "^0.35.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-unicorn": "^28.0.2",
"eslint-plugin-unicorn": "^29.0.0",
"find-unused-sass-variables": "^3.1.0",
"glob": "^7.1.6",
"globby": "^11.0.3",
Expand Down

0 comments on commit 9667438

Please sign in to comment.