From 317d60b552c7ef0c4c628b9e9fbaf97e14825279 Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Wed, 24 Jun 2020 16:20:56 +0100 Subject: [PATCH] Fix prettier --- package.json | 2 +- src/App.tsx | 12 ++++++------ src/index.tsx | 8 ++++---- src/layouts/SingleColumn.tsx | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index e3ae3b6..0105885 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "lint-staged": { "src/**/*.{js,jsx,ts,tsx}": [ "eslint", - "prettier --write", + "prettier --write --tab-width 4", "git add" ], "src/**/*.{json,css,scss,md}": [ diff --git a/src/App.tsx b/src/App.tsx index ec1db69..a4c2df7 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -20,12 +20,12 @@ import "./App.scss"; import SingleColumn from "./layouts/SingleColumn"; const App: React.FC = () => { - return ( - -
-
- - ); + return ( + +
+
+ + ); }; export default App; diff --git a/src/index.tsx b/src/index.tsx index 0e9ec1e..d55556b 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -4,8 +4,8 @@ import "./index.scss"; import App from "./App"; ReactDOM.render( - - - , - document.getElementById("root") + + + , + document.getElementById("root") ); diff --git a/src/layouts/SingleColumn.tsx b/src/layouts/SingleColumn.tsx index 406d170..bacc1e6 100644 --- a/src/layouts/SingleColumn.tsx +++ b/src/layouts/SingleColumn.tsx @@ -19,11 +19,11 @@ import React from "react"; import "./SingleColumn.scss"; interface IProps { - children?: React.ReactNode; + children?: React.ReactNode; } const SingleColumn: React.FC = (props: IProps) => { - return
{props.children}
; + return
{props.children}
; }; export default SingleColumn;