Skip to content

Commit

Permalink
chore: run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rflechtner committed Dec 19, 2023
1 parent 681c8e2 commit 8e6c1cb
Show file tree
Hide file tree
Showing 42 changed files with 186 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/cli/createDidConfig.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
7 changes: 7 additions & 0 deletions src/getExtension/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

import type { ApiWindow, InjectedWindowProvider, PubSubSessionV1, PubSubSessionV2 } from '../types/index.js'

// cross-environment reference to global object (aka 'window' in browser environments)
Expand Down
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

export { getExtensions, watchExtensions, initializeKiltExtensionAPI } from './getExtension/index.js'
2 changes: 1 addition & 1 deletion src/messaging/CredentialApiMessageType.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
2 changes: 1 addition & 1 deletion src/messaging/Error.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
7 changes: 7 additions & 0 deletions src/messaging/Message.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

/* eslint-disable @typescript-eslint/ban-ts-comment */

/**
Expand Down
2 changes: 1 addition & 1 deletion src/messaging/MessageEnvelope.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
2 changes: 1 addition & 1 deletion src/messaging/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
7 changes: 7 additions & 0 deletions src/messaging/interface/attestation/Attestation.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

/* eslint-disable @typescript-eslint/ban-ts-comment */
import {
CType,
Expand Down
7 changes: 7 additions & 0 deletions src/messaging/interface/attestation/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

export * from './request.js'
export * from './response.js'
7 changes: 7 additions & 0 deletions src/messaging/interface/attestation/request.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

import { DidResolveKey, IAttestation, KiltKeyringPair } from '@kiltprotocol/types'
import { Attestation, Did, ConfigService } from '@kiltprotocol/sdk-js'

Expand Down
7 changes: 7 additions & 0 deletions src/messaging/interface/attestation/response.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

import { DidResolveKey, ICredential, IEncryptedMessage } from '@kiltprotocol/types'
import { Attestation, Credential, Did } from '@kiltprotocol/sdk-js'

Expand Down
7 changes: 7 additions & 0 deletions src/messaging/interface/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

export * from './attestation/index.js'
export * from './misc/index.js'
export * from './session/index.js'
Expand Down
7 changes: 7 additions & 0 deletions src/messaging/interface/misc/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

import { Did } from '@kiltprotocol/sdk-js'

import { IEncryptedMessage, IError, IReject, ISession } from '../../../types/index.js'
Expand Down
7 changes: 7 additions & 0 deletions src/messaging/interface/session/Session.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

import { Did, DidDocument, DidKey, DidResourceUri, ResolvedDidKey, init } from '@kiltprotocol/sdk-js'

import {
Expand Down
7 changes: 7 additions & 0 deletions src/messaging/interface/session/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

export * from './request.js'
export * from './response.js'
7 changes: 7 additions & 0 deletions src/messaging/interface/session/request.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

import { DidDocument, DidResolveKey, DidResourceUri, SignCallback } from '@kiltprotocol/types'
import { Did } from '@kiltprotocol/sdk-js'
import { randomAsHex } from '@polkadot/util-crypto'
Expand Down
7 changes: 7 additions & 0 deletions src/messaging/interface/session/response.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

import {
DidResourceUri,
DidDocument,
Expand Down
7 changes: 7 additions & 0 deletions src/messaging/interface/verifier/Verifier.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

/* eslint-disable @typescript-eslint/ban-ts-comment */
import {
Did,
Expand Down
7 changes: 7 additions & 0 deletions src/messaging/interface/verifier/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

export * from './request.js'
export * from './response.js'
7 changes: 7 additions & 0 deletions src/messaging/interface/verifier/request.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

import { randomAsHex } from '@polkadot/util-crypto'
import { CTypeHash, DidResolveKey, DidUri } from '@kiltprotocol/types'
import { CType, Credential, Did } from '@kiltprotocol/sdk-js'
Expand Down
7 changes: 7 additions & 0 deletions src/messaging/interface/verifier/response.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

import { CType, Credential, Did } from '@kiltprotocol/sdk-js'
import { DidResolveKey, ICredential } from '@kiltprotocol/types'

Expand Down
2 changes: 1 addition & 1 deletion src/messaging/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
2 changes: 1 addition & 1 deletion src/quote/Error.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
7 changes: 7 additions & 0 deletions src/quote/Quote.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

/* eslint-disable @typescript-eslint/no-non-null-assertion */
/* eslint-disable @typescript-eslint/ban-ts-comment */

Expand Down
2 changes: 1 addition & 1 deletion src/quote/Quote.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
2 changes: 1 addition & 1 deletion src/quote/QuoteSchema.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
2 changes: 1 addition & 1 deletion src/quote/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
2 changes: 1 addition & 1 deletion src/tests/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
2 changes: 1 addition & 1 deletion src/tests/messageUtils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
2 changes: 1 addition & 1 deletion src/tests/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
7 changes: 7 additions & 0 deletions src/types/Credential.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

import { DidUri } from '@kiltprotocol/types'
import { VerifiableCredential, constants } from '@kiltprotocol/vc-export'

Expand Down
2 changes: 1 addition & 1 deletion src/types/Imported.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
7 changes: 7 additions & 0 deletions src/types/Message.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

import type {
ICredential,
ICredentialPresentation,
Expand Down
2 changes: 1 addition & 1 deletion src/types/Quote.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
7 changes: 7 additions & 0 deletions src/types/Session.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

import { DecryptCallback, DidResourceUri, EncryptCallback, SignCallback } from '@kiltprotocol/types'

import { IEncryptedMessage, IEncryptedMessageV1 } from './index.js'
Expand Down
7 changes: 7 additions & 0 deletions src/types/Window.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

import { DidResourceUri, KiltAddress } from '@kiltprotocol/types'
import { HexString } from './Imported.js'
import { CredentialDigestProof, SelfSignedProof } from '@kiltprotocol/vc-export'
Expand Down
2 changes: 1 addition & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
7 changes: 7 additions & 0 deletions src/utils/TypeGuards.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

/* eslint-disable @typescript-eslint/no-explicit-any */
import { IAttestation, ICredentialPresentation, IRequestCredentialContent } from '@kiltprotocol/types'

Expand Down
7 changes: 7 additions & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
/**
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
*/

export * from './TypeGuards.js'
2 changes: 1 addition & 1 deletion src/wellKnownDidConfiguration/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2018-2023, BOTLabs GmbH.
* Copyright (c) 2018-2023, Built on KILT.
*
* This source code is licensed under the BSD 4-Clause "Original" license
* found in the LICENSE file in the root directory of this source tree.
Expand Down

0 comments on commit 8e6c1cb

Please sign in to comment.