Skip to content

Commit 85a8a22

Browse files
sibiraj-sTimer
authored andcommitted
Run prettier on HTML files (#5839)
1 parent d165591 commit 85a8a22

File tree

5 files changed

+25
-23
lines changed

5 files changed

+25
-23
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"lint-staged": "^8.0.4",
3232
"meow": "^5.0.0",
3333
"multimatch": "^2.1.0",
34-
"prettier": "1.14.3",
34+
"prettier": "1.15.2",
3535
"puppeteer": "^1.8.0",
3636
"strip-ansi": "^4.0.0",
3737
"svg-term-cli": "^2.1.1",
@@ -44,7 +44,7 @@
4444
}
4545
},
4646
"lint-staged": {
47-
"*.{js,md,css}": [
47+
"*.{js,md,css,html}": [
4848
"prettier --trailing-comma es5 --single-quote --write",
4949
"git add"
5050
],

packages/react-scripts/fixtures/kitchensink/public/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
77
<title>React App</title>
88
</head>
99
<body>

packages/react-scripts/template-typescript/public/index.html

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="utf-8">
5-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
6-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7-
<meta name="theme-color" content="#000000">
4+
<meta charset="utf-8" />
5+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
6+
<meta
7+
name="viewport"
8+
content="width=device-width, initial-scale=1, shrink-to-fit=no"
9+
/>
10+
<meta name="theme-color" content="#000000" />
811
<!--
912
manifest.json provides metadata used when your web app is added to the
1013
homescreen on Android. See https://developers.google.com/web/fundamentals/web-app-manifest/
1114
-->
12-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
15+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
1316
<!--
1417
Notice the use of %PUBLIC_URL% in the tags above.
1518
It will be replaced with the URL of the `public` folder during the build.
@@ -22,9 +25,7 @@
2225
<title>React App</title>
2326
</head>
2427
<body>
25-
<noscript>
26-
You need to enable JavaScript to run this app.
27-
</noscript>
28+
<noscript> You need to enable JavaScript to run this app. </noscript>
2829
<div id="root"></div>
2930
<!--
3031
This HTML file is a template.

packages/react-scripts/template/public/index.html

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="utf-8">
5-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
6-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7-
<meta name="theme-color" content="#000000">
4+
<meta charset="utf-8" />
5+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
6+
<meta
7+
name="viewport"
8+
content="width=device-width, initial-scale=1, shrink-to-fit=no"
9+
/>
10+
<meta name="theme-color" content="#000000" />
811
<!--
912
manifest.json provides metadata used when your web app is added to the
1013
homescreen on Android. See https://developers.google.com/web/fundamentals/web-app-manifest/
1114
-->
12-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
15+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
1316
<!--
1417
Notice the use of %PUBLIC_URL% in the tags above.
1518
It will be replaced with the URL of the `public` folder during the build.
@@ -22,9 +25,7 @@
2225
<title>React App</title>
2326
</head>
2427
<body>
25-
<noscript>
26-
You need to enable JavaScript to run this app.
27-
</noscript>
28+
<noscript> You need to enable JavaScript to run this app. </noscript>
2829
<div id="root"></div>
2930
<!--
3031
This HTML file is a template.

test/fixtures/__shared__/template/public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="en">
33
<head>
44
<title>React App</title>
55
</head>

0 commit comments

Comments
 (0)