Skip to content
This repository was archived by the owner on Nov 29, 2021. It is now read-only.

Commit c3e0448

Browse files
committed
chore: update dependencies and format with new rules
1 parent 53bcf84 commit c3e0448

File tree

8 files changed

+2171
-3368
lines changed

8 files changed

+2171
-3368
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repo_path: &repo_path
1313

1414
job_config: &job_config
1515
docker:
16-
- image: 'circleci/node:12.9.1-browsers'
16+
- image: 'circleci/node:12.22.3-browsers'
1717
working_directory: *repo_path
1818

1919
setup_envvars: &setup_envvars

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ _NB: use semver_
3131

3232
_=> Renaming in codebase will be made progressively._
3333

34-
3534
## License
3635

3736
[MIT](LICENSE) © [UNS](https://unikname.com)

__tests__/functions/vote.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { LifeCycleGrades, throwIfNotAllowedToVote, UNSClient } from "../../src";
22
import { mockWalletTokens, NETWORK } from "./__fixtures__/tests-commons";
3-
import * as functions from "../../src/functions/unik";
3+
import * as functions from "../../src/functions/unik/functions";
44

55
const unsClient = new UNSClient();
66
unsClient.init({ network: NETWORK });

eslintrc.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ module.exports = {
1313
"@typescript-eslint/adjacent-overload-signatures": "error",
1414
"@typescript-eslint/array-type": "error",
1515
"@typescript-eslint/ban-types": "error",
16-
"@typescript-eslint/class-name-casing": "error",
16+
"@typescript-eslint/naming-convention": [
17+
"error",
18+
{
19+
selector: "class",
20+
format: ["PascalCase"],
21+
},
22+
],
1723
"@typescript-eslint/explicit-member-accessibility": [
1824
"error",
1925
{

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,24 @@
5353
"devDependencies": {
5454
"@commitlint/cli": "^12.1.1",
5555
"@commitlint/config-conventional": "^12.1.1",
56-
"@release-it/conventional-changelog": "^2.0.1",
56+
"@release-it/conventional-changelog": "^3.0.1",
5757
"@types/elliptic": "^6.4.12",
58-
"@types/jest": "^25.1.2",
58+
"@types/jest": "^26.0.24",
5959
"@types/nanoid": "^2.1.0",
60-
"@typescript-eslint/eslint-plugin": "^2.19.2",
61-
"@typescript-eslint/eslint-plugin-tslint": "^2.19.2",
62-
"@typescript-eslint/parser": "^2.19.2",
60+
"@typescript-eslint/eslint-plugin": "^4.28.4",
61+
"@typescript-eslint/eslint-plugin-tslint": "^4.28.4",
62+
"@typescript-eslint/parser": "^4.28.4",
6363
"cross-env": "^7.0.0",
6464
"del": "^5.1.0",
6565
"del-cli": "^3.0.0",
66-
"eslint": "^6.8.0",
66+
"eslint": "^7.31.0",
6767
"husky": "^6.0.0",
68-
"jest": "^25.1.0",
68+
"jest": "^27.0.6",
6969
"lint-staged": "^10.0.7",
7070
"nock": "^12.0.0",
7171
"prettier": "^1.18.2",
7272
"release-it": "^14.6.1",
73-
"ts-jest": "^25.2.0",
73+
"ts-jest": "^27.0.3",
7474
"ts-loader": "^6.0.4",
7575
"tslint": "^5.0.0",
7676
"typescript": "^3.7.5"

src/functions/did/parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const DID_PATTERN = new RegExp(TOKEN_PATTERN.source + TYPE_PATTERN.source + ID_P
2323

2424
const DID_TYPES: string[] = Object.keys(DIDTypes).map(type => type.toLowerCase());
2525

26-
export const allowedTypesByToken: {} = {
26+
export const allowedTypesByToken: Record<string, unknown> = {
2727
unik: DID_TYPES,
2828
};
2929

src/functions/jwt/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ export type VerifiedJWT = {
2929
payload: PropertyVerifierJWTPayload | VoucherJWTPayload;
3030
doc: DIDDocument;
3131
issuer: string;
32-
signer: object;
32+
signer: object; // eslint-disable-line @typescript-eslint/ban-types
3333
jwt: string;
3434
};

yarn.lock

Lines changed: 2152 additions & 3354 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)