Skip to content
This repository was archived by the owner on Mar 16, 2023. It is now read-only.

Commit 1bc982b

Browse files
committed
fix: husky
1 parent d55f613 commit 1bc982b

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@
4545
"react": "^17.0.2",
4646
"react-dom": "^17.0.2"
4747
},
48-
"husky": {
49-
"hooks": {
50-
"pre-commit": "yarn lint"
51-
}
52-
},
5348
"name": "tyrann-io",
5449
"author": "hanayashiki",
5550
"size-limit": [

src/types/LiteralType.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
import { isLeft, makeLeft, makeRight } from './Either';
1+
import { makeLeft, makeRight } from './Either';
22
import { ErrorMessage } from './ErrorMessage';
3-
import { AnyResolver, OutputOf } from './infer';
4-
import {
5-
ErrorContext,
6-
makeErrorContext,
7-
makeResolver,
8-
Resolver,
9-
} from './Resolver';
10-
import { isObject } from './utils';
3+
import { makeResolver, Resolver } from './Resolver';
114

125
export type LiteralValue = string | number | boolean;
136

@@ -27,6 +20,6 @@ export function literal<T extends LiteralValue>(value: T): TLiteral<T> {
2720
});
2821
}
2922
}),
30-
value
23+
value,
3124
};
3225
}

0 commit comments

Comments
 (0)