Skip to content

Commit

Permalink
removes "github:" from branch dependencies; moves eslint rules to glo…
Browse files Browse the repository at this point in the history
…bal config
  • Loading branch information
kezike committed Mar 15, 2024
1 parent eb9217f commit c82c676
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ module.exports = {
'prettier/prettier': 'off',
'arrow-body-style': 'off',
'prefer-arrow-callback': 'off',
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/prefer-ts-expect-error': 'off',
'@typescript-eslint/return-await': 'off',
'@typescript-eslint/strict-boolean-expressions': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'no-empty-pattern': 'off'
}
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@
"test-node": "npm run build-test && mocha dist/test/*.spec.js && rm -rf dist/test || true"
},
"dependencies": {
"@digitalbazaar/credentials-v2-context": "github:digitalbazaar/credentials-v2-context#main",
"@digitalbazaar/credentials-v2-context": "digitalbazaar/credentials-v2-context#main",
"@digitalbazaar/vc-bitstring-status-list-context": "^1.0.0",
"@digitalcredentials/bnid": "^2.1.2",
"@digitalcredentials/crypto-ld": "^7.0.6",
"@digitalcredentials/did-method-key": "^2.0.3",
"@digitalcredentials/ed25519-signature-2020": "^3.0.2",
"@digitalcredentials/ed25519-verification-key-2020": "^4.0.0",
"@digitalcredentials/security-document-loader": "github:digitalcredentials/security-document-loader#add-vc-2.0-context",
"@digitalcredentials/vc": "github:digitalcredentials/vc#vc-2.0-time-props",
"@digitalcredentials/vc-bitstring-status-list": "github:digitalcredentials/vc-bitstring-status-list#add-vc-2.0",
"@digitalcredentials/vc-data-model": "github:digitalcredentials/vc-data-model#add-vc-2.0",
"@digitalcredentials/security-document-loader": "digitalcredentials/security-document-loader#add-vc-2.0-context",
"@digitalcredentials/vc": "digitalcredentials/vc#vc-2.0-time-props",
"@digitalcredentials/vc-bitstring-status-list": "digitalcredentials/vc-bitstring-status-list#add-vc-2.0",
"@digitalcredentials/vc-data-model": "digitalcredentials/vc-data-model#add-vc-2.0",
"@digitalcredentials/x25519-key-agreement-key-2020": "^3.0.0",
"@interop/did-web-resolver": "^3.0.1",
"credentials-context": "^2.0.0",
Expand Down
3 changes: 0 additions & 3 deletions src/credential-status-manager-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ import {
validateCredential
} from './helpers.js';

/* eslint-disable @typescript-eslint/restrict-template-expressions */
/* eslint-disable @typescript-eslint/consistent-type-assertions */

// Number of credentials tracked in a list
const CREDENTIAL_STATUS_LIST_SIZE = 100000;

Expand Down
2 changes: 0 additions & 2 deletions src/credential-status-manager-index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import {
MissingDatabaseTableError
} from './errors.js';

/* eslint-disable @typescript-eslint/restrict-template-expressions */

// Type definition for base options of createStatusManager function input
interface CredentialStatusManagerBaseOptions {
databaseService: DatabaseService;
Expand Down
2 changes: 0 additions & 2 deletions src/credential-status-manager-mongodb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import {
} from './credential-status-manager-base.js';
import { BadRequestError, WriteConflictError } from './errors.js';

/* eslint-disable @typescript-eslint/restrict-template-expressions */

// Type definition for MongoDB connection
interface MongoDbConnection {
client: MongoClient;
Expand Down
2 changes: 0 additions & 2 deletions src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
*/
import { BaseCredentialStatusManager } from './credential-status-manager-base.js';

/* eslint-disable @typescript-eslint/restrict-template-expressions */

interface CustomErrorOptionalOptions {
statusManager?: BaseCredentialStatusManager;
message?: string;
Expand Down
2 changes: 0 additions & 2 deletions src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import * as DidWeb from '@interop/did-web-resolver';
import { CryptoLD } from '@digitalcredentials/crypto-ld';
import { BadRequestError, InvalidDidSeedError } from './errors.js';

/* eslint-disable @typescript-eslint/restrict-template-expressions */

// Crypto library for linked data
const cryptoLd = new CryptoLD();
cryptoLd.use(Ed25519VerificationKey2020);
Expand Down

0 comments on commit c82c676

Please sign in to comment.