Skip to content

Commit ead3488

Browse files
committed
lint: fixed linting
1 parent edc8d6c commit ead3488

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666
"ts-node": "ts-node",
6767
"ts-node-inspect": "node --require ts-node/register --inspect",
6868
"test": "jest",
69-
"lint": "eslint '{src,tests,scripts,benches}/**/*.{js,ts,json}'",
70-
"lintfix": "eslint '{src,tests,scripts,benches}/**/*.{js,ts,json}' --fix",
69+
"lint": "eslint '{src,tests,scripts}/**/*.{js,ts,json}' 'benches/**/*.ts'",
70+
"lintfix": "eslint '{src,tests,scripts}/**/*.{js,ts,json}' 'benches/**/*.ts' --fix",
7171
"lint-shell": "find ./src ./tests ./scripts -type f -regextype posix-extended -regex '.*\\.(sh)' -exec shellcheck {} +",
7272
"docs": "shx rm -rf ./docs && typedoc --gitRevision master --tsconfig ./tsconfig.build.json --out ./docs src",
7373
"bench": "shx rm -rf ./benches/results && ts-node ./benches",

src/keys/KeyRing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class KeyRing {
5252
fs?: FileSystem;
5353
logger?: Logger;
5454
fresh?: boolean;
55-
} & (
55+
} & ( // eslint-disable-next-line @typescript-eslint/ban-types
5656
| {}
5757
| {
5858
recoveryCode: RecoveryCode;
@@ -141,7 +141,7 @@ class KeyRing {
141141
options: {
142142
password: string;
143143
fresh?: boolean;
144-
} & (
144+
} & ( // eslint-disable-next-line @typescript-eslint/ban-types
145145
| {}
146146
| { recoveryCode: RecoveryCode }
147147
| { privateKey: PrivateKey }

tests/sigchain/Sigchain.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import * as sigchainErrors from '@/sigchain/errors';
1616
import * as keysUtils from '@/keys/utils';
1717
import * as claimsUtils from '@/claims/utils';
1818
import * as utils from '@/utils';
19-
import * as testsNodesUtils from '../nodes/utils';
2019

2120
describe(Sigchain.name, () => {
2221
const password = keysUtils.getRandomBytes(10).toString('utf-8');

0 commit comments

Comments
 (0)