Skip to content

Commit 1e1ec12

Browse files
fix
1 parent e389ea1 commit 1e1ec12

4 files changed

Lines changed: 17 additions & 18 deletions

File tree

src/wasm_plugin.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ impl SyncPluginHandler<Configuration> for TypeScriptPluginHandler {
4949
version: version.clone(),
5050
config_key: "typescript".to_string(),
5151
help_url: "https://dprint.dev/plugins/typescript".to_string(),
52-
config_schema_url: "https://github.com/secforge/dprint-plugin-typescript/releases/download/0.95.11+sf/schema.json".to_string(),
53-
update_url: Some("https://plugins.dprint.dev/dprint/dprint-plugin-typescript/latest.json".to_string()),
52+
config_schema_url: "https://github.com/secforge/dprint-plugin-typescript/releases/download/0.95.11+sf.1/schema.json".to_string(),
5453
}
5554
}
5655

tests/specs/statements/ifStatement/IfStatement_ElsePositioning_WithForceNewLine.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
~~ ifStatement.nextControlFlowPosition: nextLineExceptAfterBrace, ifStatement.useBraces: whenNotSingleLine, ifStatement.singleBodyPosition: forceNewLine ~~
2-
== should combine NextLineExceptAfterBrace with ForceNewLine ==
1+
~~ ifStatement.nextControlFlowPosition: nextLineExceptAfterBrace, ifStatement.useBraces: whenNotSingleLine, ifStatement.singleBodyPosition: nextLine ~~
2+
== should combine NextLineExceptAfterBrace with nextLine ==
33
if (condition) doSomething(); else doOther();
44

55
[expect]

tests/specs/statements/ifStatement/IfStatement_SimpleStatementPositioning_Core.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
~~ ifStatement.singleBodyPosition: forceNewLine, ifStatement.useBraces: maintain ~~
2-
== should force non-braced statements to new line with ForceNewLine ==
1+
~~ ifStatement.singleBodyPosition: nextLine, ifStatement.useBraces: maintain ~~
2+
== should force non-braced statements to new line with nextLine ==
33
if (condition) statement();
44

55
[expect]
66
if (condition)
77
statement();
88

9-
== should force else statements to new line with ForceNewLine ==
9+
== should force else statements to new line with nextLine ==
1010
if (condition) stmt1();
1111
else stmt2();
1212

@@ -16,7 +16,7 @@ if (condition)
1616
else
1717
stmt2();
1818

19-
== should not affect braced blocks with ForceNewLine (BracePosition controls) ==
19+
== should not affect braced blocks with nextLine (BracePosition controls) ==
2020
if (condition) {
2121
statement();
2222
}
@@ -26,7 +26,7 @@ if (condition) {
2626
statement();
2727
}
2828

29-
== should not affect braced else blocks with ForceNewLine ==
29+
== should not affect braced else blocks with nextLine ==
3030
if (condition) {
3131
stmt1();
3232
} else {
@@ -40,7 +40,7 @@ if (condition) {
4040
stmt2();
4141
}
4242

43-
== should handle mixed braced and non-braced with ForceNewLine ==
43+
== should handle mixed braced and non-braced with nextLine ==
4444
if (condition) {
4545
stmt1();
4646
} else stmt2();
@@ -51,7 +51,7 @@ if (condition) {
5151
} else
5252
stmt2();
5353

54-
== should handle nested if statements with ForceNewLine ==
54+
== should handle nested if statements with nextLine ==
5555
if (condition1) if (condition2) statement();
5656

5757
[expect]
@@ -60,14 +60,14 @@ if (condition1) {
6060
statement();
6161
}
6262

63-
== should handle complex expressions with ForceNewLine ==
63+
== should handle complex expressions with nextLine ==
6464
if (condition) console.log("message");
6565

6666
[expect]
6767
if (condition)
6868
console.log("message");
6969

70-
== should handle return statements with ForceNewLine ==
70+
== should handle return statements with nextLine ==
7171
if (condition) return value;
7272

7373
[expect]

tests/specs/statements/ifStatement/IfStatement_SimpleStatementPositioning_WhenNeeded.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
~~ ifStatement.singleBodyPosition: forceNewLine, ifStatement.useBraces: whenNeeded ~~
1+
~~ ifStatement.singleBodyPosition: nextLine, ifStatement.useBraces: whenNeeded ~~
22
== should handle empty statements correctly ==
33
if (condition) ;
44

@@ -22,22 +22,22 @@ if (condition)
2222
else
2323
doSecond();
2424

25-
== should add braces when syntactically needed with ForceNewLine ==
25+
== should add braces when syntactically needed with nextLine ==
2626
if (condition) { const x = 1; }
2727

2828
[expect]
2929
if (condition) {
3030
const x = 1;
3131
}
3232

33-
== should add braces for await expressions with ForceNewLine ==
33+
== should add braces for await expressions with nextLine ==
3434
if (condition) await doSomething();
3535

3636
[expect]
3737
if (condition)
3838
await doSomething();
3939

40-
== should not add braces for function declarations with ForceNewLine ==
40+
== should not add braces for function declarations with nextLine ==
4141
if (condition) function test() { return 1; }
4242

4343
[expect]
@@ -59,7 +59,7 @@ if (condition1) {
5959
else
6060
await doAsync();
6161

62-
== should handle dangling else with ForceNewLine - nested if with else ==
62+
== should handle dangling else with nextLine - nested if with else ==
6363
if (condition1) if (condition2) doSomething(); else doOther();
6464

6565
[expect]

0 commit comments

Comments
 (0)