Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Cleanup & make coding comfier
Browse files Browse the repository at this point in the history
  • Loading branch information
tdemin committed Aug 30, 2019
1 parent 461dc57 commit 0db706b
Show file tree
Hide file tree
Showing 13 changed files with 140 additions and 238 deletions.
21 changes: 10 additions & 11 deletions .prettierignore
@@ -1,11 +1,10 @@
doc
public
.vscode
src/logo.svg
.drone.yml
.editorconfig
.gitignore
**/Dockerfile
docker-compose.yml
**/README*.md
package.json
doc
public
.vscode
.drone.yml
.editorconfig
.gitignore
**/Dockerfile
docker-compose.yml
**/README*.md
package.json
15 changes: 8 additions & 7 deletions .vscode/settings.json
@@ -1,7 +1,8 @@
{
"files.eol": "\n",
"files.encoding": "utf8",
"files.insertFinalNewline": true,
"editor.tabSize": 4,
"editor.insertSpaces": true,
}
{
"files.eol": "\n",
"files.encoding": "utf8",
"files.insertFinalNewline": true,
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.formatOnSave": true
}
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -24,7 +24,9 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"beautify": "prettier --write src/**",
"lint": "eslint src"
},
"browserslist": {
"production": [
Expand Down
4 changes: 2 additions & 2 deletions public/manifest.json
@@ -1,6 +1,6 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "Amber",
"name": "Amber Web",
"icons": [
{
"src": "favicon.ico",
Expand Down
33 changes: 0 additions & 33 deletions src/App.css

This file was deleted.

9 changes: 0 additions & 9 deletions src/App.test.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions src/App.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions src/index.css

This file was deleted.

11 changes: 5 additions & 6 deletions src/index.tsx
@@ -1,10 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import React from "react";
import ReactDOM from "react-dom";
import App from "./main";
import * as serviceWorker from "./serviceWorker";

ReactDOM.render(<App />, document.getElementById('root'));
ReactDOM.render(<App />, document.getElementById("root"));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
Expand Down
7 changes: 0 additions & 7 deletions src/logo.svg

This file was deleted.

9 changes: 9 additions & 0 deletions src/main.test.tsx
@@ -0,0 +1,9 @@
import React from "react";
import ReactDOM from "react-dom";
import App from "./main";

it("renders without crashing", () => {
const div = document.createElement("div");
ReactDOM.render(<App />, div);
ReactDOM.unmountComponentAtNode(div);
});
7 changes: 7 additions & 0 deletions src/main.tsx
@@ -0,0 +1,7 @@
import React from "react";

const App: React.FC = () => {
return <div className="app"></div>;
};

export default App;

0 comments on commit 0db706b

Please sign in to comment.