From 40f577d01d4fb6cb9ff57f3f8cc04793d76bfacb Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Wed, 10 Mar 2021 00:12:01 -0500 Subject: [PATCH] fix linting issues --- .../templates/landing/Landing.tsx | 3 +- packages/web/package.json | 26 ++++++------ packages/web/src/App.css | 42 +++++++++---------- packages/web/src/index.css | 14 +++---- packages/web/src/index.tsx | 2 +- 5 files changed, 42 insertions(+), 45 deletions(-) diff --git a/packages/design-system/templates/landing/Landing.tsx b/packages/design-system/templates/landing/Landing.tsx index 75bb1ea..3d4a4d9 100644 --- a/packages/design-system/templates/landing/Landing.tsx +++ b/packages/design-system/templates/landing/Landing.tsx @@ -1,9 +1,8 @@ import { AppShell } from '@roleypoly/design-system/organisms/app-shell'; import { Landing } from '@roleypoly/design-system/organisms/landing'; import * as React from 'react'; -import { ProvidableAppShellProps } from 'roleypoly/providers/appShellData'; -export const LandingTemplate = (props: ProvidableAppShellProps) => ( +export const LandingTemplate = (props: any) => ( diff --git a/packages/web/package.json b/packages/web/package.json index f5253ec..f3ed07e 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -2,6 +2,12 @@ "name": "@roleypoly/web", "version": "0.1.0", "private": true, + "scripts": { + "build": "cross-env BUILD_PATH=../../dist react-scripts build", + "eject": "react-scripts eject", + "start": "react-scripts start", + "test": "react-scripts test" + }, "dependencies": { "@testing-library/jest-dom": "^5.11.9", "@testing-library/react": "^11.2.5", @@ -17,22 +23,10 @@ "web-vitals": "^1.1.0" }, "devDependencies": { - "cross-env": "7.0.3", "babel-loader": "8.1.0", + "cross-env": "7.0.3", "webpack": "4.44.2" }, - "scripts": { - "start": "react-scripts start", - "build": "cross-env BUILD_PATH=../../dist react-scripts build", - "test": "react-scripts test", - "eject": "react-scripts eject" - }, - "eslintConfig": { - "extends": [ - "react-app", - "react-app/jest" - ] - }, "browserslist": { "production": [ ">0.2%", @@ -44,5 +38,11 @@ "last 1 firefox version", "last 1 safari version" ] + }, + "eslintConfig": { + "extends": [ + "react-app", + "react-app/jest" + ] } } diff --git a/packages/web/src/App.css b/packages/web/src/App.css index 74b5e05..78b8850 100644 --- a/packages/web/src/App.css +++ b/packages/web/src/App.css @@ -1,38 +1,38 @@ .App { - text-align: center; + text-align: center; } .App-logo { - height: 40vmin; - pointer-events: none; + height: 40vmin; + pointer-events: none; } @media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } + .App-logo { + animation: App-logo-spin infinite 20s linear; + } } .App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; + background-color: #282c34; + min-height: 100vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + font-size: calc(10px + 2vmin); + color: white; } .App-link { - color: #61dafb; + color: #61dafb; } @keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } } diff --git a/packages/web/src/index.css b/packages/web/src/index.css index ec2585e..b723e92 100644 --- a/packages/web/src/index.css +++ b/packages/web/src/index.css @@ -1,13 +1,11 @@ body { - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', - sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', + 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', - monospace; + font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; } diff --git a/packages/web/src/index.tsx b/packages/web/src/index.tsx index a08b449..0d99529 100644 --- a/packages/web/src/index.tsx +++ b/packages/web/src/index.tsx @@ -1,7 +1,7 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import './index.css'; import App from './App'; +import './index.css'; import reportWebVitals from './reportWebVitals'; ReactDOM.render(