Skip to content

Commit 24bc963

Browse files
committed
Running prettier
1 parent f295c45 commit 24bc963

37 files changed

+2316
-1996
lines changed

.babelrc

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"presets": [
3-
"@babel/preset-env", "@babel/preset-react"
4-
],
2+
"presets": ["@babel/preset-env", "@babel/preset-react"],
53
"plugins": [
64
"@babel/plugin-transform-runtime",
75
"react-hot-loader/babel",
@@ -19,4 +17,4 @@
1917
["@babel/plugin-proposal-class-properties", { "loose": true }],
2018
"@babel/plugin-proposal-json-strings"
2119
]
22-
}
20+
}

.eslintrc

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
{
22
"parser": "babel-eslint",
3-
"plugins": [
4-
"react",
5-
"jest",
6-
"eslint-plugin-react"
7-
],
3+
"plugins": ["react", "jest", "eslint-plugin-react"],
84
"env": {
95
"es6": true,
106
"jest": true,
117
"amd": true,
128
"browser": true,
139
"node": true
1410
},
15-
"extends": [
16-
"eslint:recommended",
17-
"plugin:react/recommended"
18-
],
11+
"extends": ["eslint:recommended", "plugin:react/recommended"],
1912
"globals": {
2013
"React": true,
2114
"document": true,

examples/base.html

+34-29
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,45 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html class="no-js" lang="">
3-
4-
<head>
5-
<meta charset="utf-8">
6-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
76
<title><%= htmlWebpackPlugin.options.title %></title>
8-
<meta name="viewport" content="width=device-width, initial-scale=1">
9-
<meta name="keywords" content="<%= htmlWebpackPlugin.options.keywords %>">
10-
<meta name="description" content="<%= htmlWebpackPlugin.options.description %>">
11-
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
12-
</head>
7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
8+
<meta name="keywords" content="<%= htmlWebpackPlugin.options.keywords %>" />
9+
<meta
10+
name="description"
11+
content="<%= htmlWebpackPlugin.options.description %>"
12+
/>
13+
<link
14+
href="https://fonts.googleapis.com/icon?family=Material+Icons"
15+
rel="stylesheet"
16+
/>
17+
</head>
1318

14-
<body>
15-
<div id="container"></div>
16-
<!--
19+
<body>
20+
<div id="container"></div>
21+
<!--
1722
This script adds the Roboto font to our project. For more detail go to this site:
1823
http://www.google.com/fonts#UsePlace:use/Collection:Roboto:400,300,500
1924
-->
20-
<script>
21-
var WebFontConfig = {
22-
google: {families: ['Roboto:400,300,500:latin']}
23-
};
24-
(function () {
25-
var wf = document.createElement('script');
26-
wf.src = ('https:' === document.location.protocol ? 'https' : 'http') +
27-
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
28-
wf.type = 'text/javascript';
29-
wf.async = 'true';
30-
var s = document.getElementsByTagName('script')[0];
25+
<script>
26+
var WebFontConfig = {
27+
google: { families: ["Roboto:400,300,500:latin"] },
28+
};
29+
(function () {
30+
var wf = document.createElement("script");
31+
wf.src =
32+
("https:" === document.location.protocol ? "https" : "http") +
33+
"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js";
34+
wf.type = "text/javascript";
35+
wf.async = "true";
36+
var s = document.getElementsByTagName("script")[0];
3137
s.parentNode.insertBefore(wf, s);
32-
})();
33-
</script>
34-
<!--
38+
})();
39+
</script>
40+
<!--
3541
Define your local ip
3642
<script src="http://192.168.3.119:8080/target/target-script-min.js#anonymous"></script>
3743
-->
38-
</body>
39-
44+
</body>
4045
</html>

0 commit comments

Comments
 (0)