From 8c7e8a14819b0265207dcefde8e8de1e2d799661 Mon Sep 17 00:00:00 2001 From: Daniel Shleifman Date: Sat, 5 Jun 2021 01:33:01 +0300 Subject: [PATCH] test --- web/package.json | 6 ++++++ .../TorrentCache/DefaultSnake.jsx | 2 +- web/yarn.lock | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/web/package.json b/web/package.json index 67224e3..9f3b84b 100644 --- a/web/package.json +++ b/web/package.json @@ -8,6 +8,7 @@ "axios": "^0.21.1", "clsx": "^1.1.1", "fontsource-roboto": "^4.0.0", + "husky": "^6.0.0", "konva": "^8.0.1", "lodash": "^4.17.21", "material-ui-image": "^3.3.2", @@ -33,6 +34,11 @@ "lint": "eslint --ext .js,.jsx src --color", "fix": "yarn lint --fix" }, + "husky": { + "hooks": { + "pre-commit": "yarn lint --quiet" + } + }, "browserslist": { "production": [ ">0.2%", diff --git a/web/src/components/DialogTorrentDetailsContent/TorrentCache/DefaultSnake.jsx b/web/src/components/DialogTorrentDetailsContent/TorrentCache/DefaultSnake.jsx index 0937ff2..0d7ddb1 100644 --- a/web/src/components/DialogTorrentDetailsContent/TorrentCache/DefaultSnake.jsx +++ b/web/src/components/DialogTorrentDetailsContent/TorrentCache/DefaultSnake.jsx @@ -97,7 +97,7 @@ export default function DefaultSnake({ isMini, cacheMap, preloadPiecesAmount }) const { x, y } = getItemCoordinates(id) return ( -