Skip to content

Commit 205f04a

Browse files
committed
Add editorconfig and reformat files
1 parent 9e9e1f2 commit 205f04a

File tree

3 files changed

+38
-16
lines changed

3 files changed

+38
-16
lines changed

.editorconfig

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[{package.json,.*rc,*.yml}]
11+
indent_style = space
12+
indent_size = 2
13+
14+
[*.md]
15+
trim_trailing_whitespace = false
16+
17+
# Uglify (or some other tool) always rewrites this file
18+
# without a final newline on build, so disabling that
19+
# editorconfig feature specifically for this file
20+
[{mangle.json,**/mangle.json}]
21+
indent_style = space
22+
insert_final_newline = false

babel.config.js

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
module.exports = function(api) {
2-
api.cache(true);
2+
api.cache(true);
33

4-
const presets = [
5-
[
6-
"@babel/preset-react",
7-
{
8-
pragma: "createElement",
9-
pragmaFrag: "Fragment"
10-
}
11-
]
12-
];
4+
const presets = [
5+
[
6+
"@babel/preset-react",
7+
{
8+
pragma: "createElement",
9+
pragmaFrag: "Fragment"
10+
}
11+
]
12+
];
1313

14-
const plugins = [];
14+
const plugins = [];
1515

16-
return {
17-
presets,
18-
plugins
19-
};
16+
return {
17+
presets,
18+
plugins
19+
};
2020
};

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createElement } from "preact";
22

33
export function App() {
4-
return <div>Hello World!</div>;
4+
return <div>Hello World!</div>;
55
}

0 commit comments

Comments
 (0)