feat: externalize env #162
Annotations
10 errors and 11 warnings
Validate:
src/cliAgent.ts#L116
Replace `⏎··const·didContractAddress·=·process.env.DID_CONTRACT_ADDRESS·as·string;` with `··const·didContractAddress·=·process.env.DID_CONTRACT_ADDRESS·as·string`
|
Validate:
src/cliAgent.ts#L118
Delete `;`
|
Validate:
src/cliAgent.ts#L119
Replace `=·process.env.FILE_SERVER_TOKEN;` with `·=·process.env.FILE_SERVER_TOKEN`
|
Validate:
src/cliAgent.ts#L120
Replace `=·process.env.RPC_URL;` with `·=·process.env.RPC_URL`
|
Validate:
src/cliAgent.ts#L121
Replace `=·process.env.SERVER_URL;` with `·=·process.env.SERVER_URL`
|
Validate:
src/cliAgent.ts#L299
Replace `(process.env.BCOVRIN_TEST_GENESIS)` with `process.env.BCOVRIN_TEST_GENESIS`
|
Validate:
src/server.ts#L21
There should be at least one empty line between import groups
|
Validate:
src/server.ts#L22
`dotenv` import should occur before import of `express`
|
Validate:
src/server.ts#L22
Delete `;`
|
Validate:
src/server.ts#L24
Delete `;`
|
Validate
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Validate:
src/authentication.ts#L12
Unexpected any. Specify a different type
|
Validate:
src/cliAgent.ts#L356
Caution: `jwt` also has a named export `sign`. Check if you meant to write `import {sign} from 'jsonwebtoken'` instead
|
Validate:
src/controllers/credentials/CredentialDefinitionController.ts#L49
Unexpected constant condition
|
Validate:
src/controllers/credentials/SchemaController.ts#L51
Unexpected constant condition
|
Validate:
src/controllers/credentials/SchemaController.ts#L56
Unexpected constant condition
|
Validate:
src/controllers/did/DidController.ts#L351
Unexpected any. Specify a different type
|
Validate:
src/controllers/multi-tenancy/MultiTenancyController.ts#L393
Unexpected any. Specify a different type
|
Validate:
src/controllers/multi-tenancy/MultiTenancyController.ts#L448
Unexpected any. Specify a different type
|
Validate:
src/controllers/multi-tenancy/MultiTenancyController.ts#L482
Unexpected any. Specify a different type
|
Validate:
src/controllers/multi-tenancy/MultiTenancyController.ts#L837
Unexpected any. Specify a different type
|