Skip to content

Commit

Permalink
add spellchecker (#98)
Browse files Browse the repository at this point in the history
* add spellchecker
  • Loading branch information
volodymyr-basiuk authored Sep 11, 2024
1 parent 4ded5f3 commit e50f081
Show file tree
Hide file tree
Showing 8 changed files with 964 additions and 26 deletions.
17 changes: 16 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
const iden3Config = require('@iden3/eslint-config');
const { spellcheckerRule, cspellConfig } = require('@iden3/eslint-config/cspell');

module.exports = {
extends: ['@iden3/eslint-config']
...iden3Config,
rules: {
'@cspell/spellchecker': [
1,
{
...spellcheckerRule,
cspell: {
...cspellConfig,
ignoreWords: ['unmarshal', 'UWLEWdAWcosiLkYoL0KWwZpgEOrPPepl6T5gC']
}
}
]
}
};
943 changes: 931 additions & 12 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"test:watch": "jest --watch",
"build:types": "tsc -p tsconfig.build.json && tsc-alias",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"lint": "eslint src test --ext .ts",
"lint:fix": "eslint src test --ext .ts --fix",
"lint": "eslint src test --ext .ts src/** test/*.ts",
"lint:check": "eslint --ext .ts src/** test/*.ts",
"build": "npm run clean && tsc --module commonjs -p tsconfig.build.json && tsc-alias",
"clean": "rimraf ./dist"
},
Expand Down Expand Up @@ -44,6 +44,7 @@
"uuid": "^9.0.1"
},
"devDependencies": {
"@cspell/eslint-plugin": "^8.14.2",
"@iden3/eslint-config": "https://github.com/iden3/eslint-config",
"@typechain/ethers-v5": "^10.2.0",
"@types/jest": "^29.5.2",
Expand Down
6 changes: 3 additions & 3 deletions test/atomicV3.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ describe('atomicV3', () => {
body: {
callbackUrl: 'http://localhost:8080/callback?id=1234442-123123-123123',
reason: 'reason',
message: 'mesage',
message: 'message',
did_doc: {},
scope: [
{
Expand Down Expand Up @@ -401,7 +401,7 @@ describe('atomicV3', () => {
}
]
},
from: 'did:polygonid:polygon:mumbai:2qHwoMVgF22ozYfs4gXiC8rr6S3sBCr2WSQwkRTfB3'
from: 'did:iden3:polygon:amoy:xCRp75DgAdS63W65fmXHz6p9DwdonuRU9e46DifhX'
};

const verifier = await Verifier.newVerifier({
Expand All @@ -411,7 +411,7 @@ describe('atomicV3', () => {
});

const token =
'eyJhbGciOiJncm90aDE2IiwiY2lyY3VpdElkIjoiYXV0aFYyIiwiY3JpdCI6WyJjaXJjdWl0SWQiXSwidHlwIjoiYXBwbGljYXRpb24vaWRlbjMtemtwLWpzb24ifQ.eyJpZCI6ImYxZDc5N2NiLTZlMWItNGRhMS1hMDkwLTU5MmNkNDg4OTk0YyIsInR5cCI6ImFwcGxpY2F0aW9uL2lkZW4zLXprcC1qc29uIiwidHlwZSI6Imh0dHBzOi8vaWRlbjMtY29tbXVuaWNhdGlvbi5pby9hdXRob3JpemF0aW9uLzEuMC9yZXNwb25zZSIsInRoaWQiOiI3ZTViNTg0Ny1iNDc5LTQ0OTktOTBlZS01ZmU0ODI2YTViZGQiLCJib2R5Ijp7Im1lc3NhZ2UiOiJtZXNhZ2UiLCJzY29wZSI6W3siaWQiOjEsImNpcmN1aXRJZCI6ImNyZWRlbnRpYWxBdG9taWNRdWVyeVYzLWJldGEuMSIsInByb29mIjp7InBpX2EiOlsiMTEwMzA1MTc3MzAyMTU4NTk4NTc2OTI1MTM3ODk1MTc5MTUyMzQwNjYxODczNTY3MTM1NTk3NzMzMTE0Nzk3NTYzNzkxNTM3MTM3NTMiLCIyMDIwMjQwNDc4MjU2MTExODkwODE2ODI2NjI5NzUzNDUzMzczMzc0OTA3NTk1ODQ5NDQ5ODk5ODAwMzM0OTMyNTg4NzE2MTMzODI0NyIsIjEiXSwicGlfYiI6W1siMTA4NDkzOTMzNjY2NTQwMzEyNzM4MzU1MDMwODU0NzEwNjI3ODIxNzE4NjM2NjY4MDQ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MTIiXSxbIjM4NTkyMzg1NjUxOTQ3OTQ4NjUxNTM3NDU0NDUzNzA3NzYyMjM2NjgwNjQ4MTk1Nzk4MjczMjkyMTc5MjM2NDk4MDg0NTU5OTEzMjYiLCIyMTg3MjI4OTA2MDg0MTE4MDM3NDI3NTAwMTA5Mjg4OTY2NzQ2NzUyMzkxMDI2NTIyMDQxODY1NDA3MDM0MDI0MDAxNDA4NDQxNjIxMyJdLFsiMSIsIjAiXV0sInBpX2MiOlsiODgxODAyMDA2NzQ5NDc5NDI5Njg2MDk3NjAyODE2MjU1OTg0OTM1Nzg1MjcwOTM2NTU5ODI2OTI5NDAxNzEzODEyMDY0MDk2NTg2NCIsIjE3OTcyNDU1NzY5MzUwNzkxMTE3OTQwMjA3NjM3NjU0ODYxOTA4ODk5MjAwMzI3NjA3ODUzNzY4NjYxMTE1ODIyOTAwNzU0NDk3OTQzIiwiMSJdLCJwcm90b2NvbCI6Imdyb3RoMTYiLCJjdXJ2ZSI6ImJuMTI4In0sInB1Yl9zaWduYWxzIjpbIjIxNTc1MTI3MjE2MjM2MjQ4ODY5NzAyMjc2MjQ2MDM3NTU3MTE5MDA3NDY2MTgwMzAxOTU3NzYyMTk2NTkzNzg2NzMzMDA3NjE3IiwiMjQ3MDc1MTE5NDk3NTU4Njk5NzU5ODQzMTI5NzMyMzc4NTAwNzIwMDE4NTk2NTMzNTc1ODc1OTA2MTgxNjM1NDgyNjc1MjY5MTA5MSIsIjE3ODQ5OTgxNzIwNjM0MjEyODAyNjY0MTg5OTI5NjcxMTQwNzYyNTU3NDgzMjM2NzA4MDk3NzIzODg0MTcyNjQxMTI0NjkxMjIyMjk4Il19';

await expect(verifier.fullVerify(token, request, testOpts)).resolves.not.toThrow();
});
Expand Down
2 changes: 1 addition & 1 deletion test/auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ describe('auth tests', () => {
expect(instance.challenge.toString()).toEqual(
'6110517768249559238193477435454792024732173865488900270849624328650765691494'
);
// TODO(illia-korotia): why Hash type doesn't implement `toString()` method?
// TODO: why Hash type doesn't implement `toString()` method?
expect(instance.pubSignals.GISTRoot.string()).toEqual(
'1243904711429961858774220647610724273798918457991486031567244100767259239747'
);
Expand Down
4 changes: 2 additions & 2 deletions test/common.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DID } from '@iden3/js-iden3-core';
import { checkUserState } from '@lib/circuits/common';
import { mockResolverWithNoStateInContract, mockResolverWithNotLatesState } from './mocks';
import { mockResolverWithNoStateInContract, mockResolverWithNotLatestState } from './mocks';
import { Hash } from '@iden3/js-merkletree';

describe('Common', () => {
Expand All @@ -15,6 +15,6 @@ describe('Common', () => {
);
});
it('checkUserState', async () => {
await checkUserState(mockResolverWithNotLatesState, issuerID, hash);
await checkUserState(mockResolverWithNotLatestState, issuerID, hash);
});
});
Loading

0 comments on commit e50f081

Please sign in to comment.