diff --git a/.eslintrc.json b/.eslintrc.json index 8d4d7dd1c..4f22d36f5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,5 +1,5 @@ { - "plugins": ["jest", "sonarjs"], + "plugins": ["jest", "sonarjs", "unused-imports"], "globals": { "process": "readonly" }, @@ -23,6 +23,7 @@ "variables": true } ], + "unused-imports/no-unused-imports": "error", "no-void": "off", "lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }], "import/no-extraneous-dependencies": "off", diff --git a/package.json b/package.json index a13add5bc..c140d6e75 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@docknetwork/sdk", - "version": "6.8.1", + "version": "6.8.2", "main": "index.js", "license": "MIT", "repository": { @@ -36,6 +36,7 @@ "eslint-plugin-import": "^2.20.2", "eslint-plugin-jest": "^24.5.0", "eslint-plugin-sonarjs": "0.5.0", + "eslint-plugin-unused-imports": "^3.0.0", "eth-revert-reason": "^1.0.3", "ethers": "^5.4", "ethr-did-resolver": "^2.2.0", diff --git a/src/utils/vc/crypto/common/DockCryptoSignature.js b/src/utils/vc/crypto/common/DockCryptoSignature.js index 92e31e8ac..00e3fc158 100644 --- a/src/utils/vc/crypto/common/DockCryptoSignature.js +++ b/src/utils/vc/crypto/common/DockCryptoSignature.js @@ -1,5 +1,4 @@ import { initializeWasm, CredentialSchema, DefaultSchemaParsingOpts } from '@docknetwork/crypto-wasm-ts'; -import * as _ from 'underscore'; import jsonld from 'jsonld'; import { SECURITY_CONTEXT_URL } from 'jsonld-signatures'; diff --git a/yarn.lock b/yarn.lock index 073b4768d..f99bffbd7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6325,6 +6325,18 @@ eslint-plugin-sonarjs@0.5.0: resolved "https://registry.yarnpkg.com/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.5.0.tgz#ce17b2daba65a874c2862213a9e38e8986ad7d7d" integrity sha512-XW5MnzlRjhXpIdbULC/qAdJYHWw3rRLws/DyawdlPU/IdVr9AmRK1r2LaCvabwKOAW2XYYSo3kDX58E4MrB7PQ== +eslint-plugin-unused-imports@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-3.0.0.tgz#d25175b0072ff16a91892c3aa72a09ca3a9e69e7" + integrity sha512-sduiswLJfZHeeBJ+MQaG+xYzSWdRXoSw61DpU13mzWumCkR0ufD0HmO4kdNokjrkluMHpj/7PJeN35pgbhW3kw== + dependencies: + eslint-rule-composer "^0.3.0" + +eslint-rule-composer@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz#79320c927b0c5c0d3d3d2b76c8b4a488f25bbaf9" + integrity sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg== + eslint-scope@^5.0.0, eslint-scope@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"