diff --git a/extension/src/test/cli/expShow.test.ts b/extension/src/test/cli/expShow.test.ts index 3dbe227483..36d5797358 100644 --- a/extension/src/test/cli/expShow.test.ts +++ b/extension/src/test/cli/expShow.test.ts @@ -12,8 +12,8 @@ import { import { ExperimentFlag } from '../../cli/dvc/constants' suite('exp show --show-json', () => { - // eslint-disable-next-line sonarjs/cognitive-complexity describe('Demo Repository', () => { + // eslint-disable-next-line sonarjs/cognitive-complexity it('should return the expected output', async () => { await initializeDemoRepo() const output = await dvcReader.expShow( diff --git a/extension/src/test/cli/plotsDiff.test.ts b/extension/src/test/cli/plotsDiff.test.ts index 80c7da1790..a61f1f30f7 100644 --- a/extension/src/test/cli/plotsDiff.test.ts +++ b/extension/src/test/cli/plotsDiff.test.ts @@ -15,8 +15,8 @@ import { import { isDvcError } from '../../cli/dvc/reader' suite('plots diff -o --split --show-json', () => { - // eslint-disable-next-line sonarjs/cognitive-complexity describe('Demo Repository', () => { + // eslint-disable-next-line sonarjs/cognitive-complexity it('should return the expected output', async () => { await initializeDemoRepo() const revisionsRequiredForSubmodule = [EXPERIMENT_WORKSPACE_ID, 'HEAD'] diff --git a/package.json b/package.json index b779dc29f0..6c3b19c340 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "eslint-plugin-promise": "6.1.1", "eslint-plugin-react": "7.33.2", "eslint-plugin-react-hooks": "4.6.0", - "eslint-plugin-sonarjs": "0.23.0", + "eslint-plugin-sonarjs": "0.24.0", "eslint-plugin-sort-keys-fix": "1.1.2", "eslint-plugin-testing-library": "6.2.0", "eslint-plugin-unicorn": "51.0.1", diff --git a/webview/src/shared/hooks/useDragAndDrop.tsx b/webview/src/shared/hooks/useDragAndDrop.tsx index cca780adbc..62852777cf 100644 --- a/webview/src/shared/hooks/useDragAndDrop.tsx +++ b/webview/src/shared/hooks/useDragAndDrop.tsx @@ -119,6 +119,7 @@ export const useDragAndDrop = ({ dispatch(changeRef(undefined)) }, [immediateDragLeave, dispatch]) + // eslint-disable-next-line sonarjs/cognitive-complexity const handleDragStart = (e: DragEvent) => { const defaultDragEnterDirection = vertical ? DragEnterDirection.TOP diff --git a/yarn.lock b/yarn.lock index 981abc1279..db0d05eaf0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9061,10 +9061,10 @@ eslint-plugin-react@7.33.2: semver "^6.3.1" string.prototype.matchall "^4.0.8" -eslint-plugin-sonarjs@0.23.0: - version "0.23.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.23.0.tgz#0265bad801ea210951672ee3cafbcf5d456ada96" - integrity sha512-z44T3PBf9W7qQ/aR+NmofOTyg6HLhSEZOPD4zhStqBpLoMp8GYhFksuUBnCxbnf1nfISpKBVkQhiBLFI/F4Wlg== +eslint-plugin-sonarjs@0.24.0: + version "0.24.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.24.0.tgz#b594ccb9b1d6123edd3c3fe3a45b4392e14932d7" + integrity sha512-87zp50mbbNrSTuoEOebdRQBPa0mdejA5UEjyuScyIw8hEpEjfWP89Qhkq5xVZfVyVSRQKZc9alVm7yRKQvvUmg== eslint-plugin-sort-keys-fix@1.1.2: version "1.1.2"