Skip to content
This repository was archived by the owner on Feb 20, 2020. It is now read-only.

Commit 5e85858

Browse files
renovate[bot]ikatyang
authored andcommitted
chore(deps): update dependency prettier to v1.9.2 (#78)
* chore(deps): update dependency prettier to v1.9.2 * refactor: fix linting
1 parent c526cfb commit 5e85858

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@types/ramda": "ikatyang/types-ramda#e37c398",
3838
"dts-element": "2.2.1",
3939
"jest": "21.2.1",
40-
"prettier": "1.7.4",
40+
"prettier": "1.9.2",
4141
"prettier-config-ikatyang": "1.1.1",
4242
"standard-version": "4.2.0",
4343
"ts-jest": "21.2.4",

src/utils/has-same-parameter.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ export const has_same_parameter = (
1111
function_type_2: dts.IFunctionType,
1212
parameter_index: number,
1313
) => {
14-
const [first, second] = [
15-
function_type_1,
16-
function_type_2,
17-
].map(function_type => {
18-
const { parameters = [], generics = [] } = function_type;
19-
const parameter_type = parameters[parameter_index].type!;
20-
return { generics, parameter_type };
21-
});
14+
const [first, second] = [function_type_1, function_type_2].map(
15+
function_type => {
16+
const { parameters = [], generics = [] } = function_type;
17+
const parameter_type = parameters[parameter_index].type!;
18+
return { generics, parameter_type };
19+
},
20+
);
2221

2322
if (!R.equals(first.parameter_type, second.parameter_type)) {
2423
// suppose type that looks different should have different meaning

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2432,9 +2432,9 @@ [email protected]:
24322432
version "1.1.1"
24332433
resolved "https://registry.yarnpkg.com/prettier-config-ikatyang/-/prettier-config-ikatyang-1.1.1.tgz#9ccab4bc2d441e4c68b58dbe8f1a4e18213c3f2d"
24342434

2435-
prettier@1.7.4:
2436-
version "1.7.4"
2437-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.7.4.tgz#5e8624ae9363c80f95ec644584ecdf55d74f93fa"
2435+
prettier@1.9.2:
2436+
version "1.9.2"
2437+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.9.2.tgz#96bc2132f7a32338e6078aeb29727178c6335827"
24382438

24392439
pretty-format@^21.2.1:
24402440
version "21.2.1"

0 commit comments

Comments
 (0)