Skip to content

Commit bd09183

Browse files
committed
fix: adaptions for prettier 3 formatter-changes in html
1 parent 8187042 commit bd09183

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
parser: html
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html dir="ltr" lang="en">
3+
<head>
4+
<meta charset="viewport" content="with=device-width" />
5+
<title>Test</title>
6+
<script type="module" src="module.js"></script>
7+
<script type="module2" src="module2.js"></script>
8+
9+
<link rel="stylesheet" type="text/css" href="style.css" />
10+
</head>
11+
12+
<body></body>
13+
</html>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!doctype html>
2+
<html dir="ltr" lang="en">
3+
4+
<head>
5+
<meta
6+
charset="viewport"
7+
content="with=device-width">
8+
<title>Test</title><script type="module" src="module.js"></script>
9+
<script type="module2" src="module2.js"></script>
10+
11+
<link rel="stylesheet" type ="text/css" href="style.css">
12+
</head>
13+
14+
<body>
15+
16+
</body></html>
17+

testlib/src/test/java/com/diffplug/spotless/npm/PrettierFormatterStepTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void formattingUsingPrettier2WithConfigFile(String fileType) throws Exception {
4646
}
4747

4848
@ParameterizedTest(name = "{index}: prettier 3.x can be applied to {0}")
49-
@ValueSource(strings = {"html", "typescript", "json", "javascript-es5", "javascript-es6", "css", "scss", "markdown", "yaml"})
49+
@ValueSource(strings = {"html_prettier3", "typescript", "json", "javascript-es5", "javascript-es6", "css", "scss", "markdown", "yaml"})
5050
void formattingUsingPrettier3WithConfigFile(String fileType) throws Exception {
5151
runTestUsingPrettier(fileType, ImmutableMap.of("prettier", "3.0.0"));
5252
}

0 commit comments

Comments
 (0)