From c9401214dbfb006c22ae7b7f82ea571a402a43d4 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Sat, 25 Nov 2017 12:03:25 +0100 Subject: [PATCH] Fix linting --- .../with-apollo-and-redux/components/Post.js | 3 +- .../components/PostList.js | 2 +- examples/with-apollo-and-redux/pages/index.js | 2 - examples/with-apollo-and-redux/server.js | 1 - examples/with-tailwindcss/components/head.js | 32 ++++----- examples/with-tailwindcss/components/nav.js | 6 +- examples/with-tailwindcss/pages/_document.js | 8 +-- examples/with-tailwindcss/pages/index.js | 7 +- .../styles/config/postcss.config.js | 4 +- .../styles/config/tailwind.config.js | 72 ++++++------------- 10 files changed, 52 insertions(+), 85 deletions(-) diff --git a/examples/with-apollo-and-redux/components/Post.js b/examples/with-apollo-and-redux/components/Post.js index ccd46457..545f7570 100644 --- a/examples/with-apollo-and-redux/components/Post.js +++ b/examples/with-apollo-and-redux/components/Post.js @@ -7,7 +7,7 @@ function Post ({ id, data: { loading, error, Post } }) {

{Post.title}

-

ID: {Post.id}
URL: {Post.url}

+

ID: {Post.id}
URL: {Post.url}

@@ -26,7 +26,6 @@ const post = gql` } ` - // The `graphql` wrapper executes a GraphQL query and makes the results // available on the `data` prop of the wrapped component (PostList) // Tip: ownProps is parent component's props diff --git a/examples/with-apollo-and-redux/components/PostList.js b/examples/with-apollo-and-redux/components/PostList.js index cce206b5..f3cdedf5 100644 --- a/examples/with-apollo-and-redux/components/PostList.js +++ b/examples/with-apollo-and-redux/components/PostList.js @@ -16,7 +16,7 @@ function PostList ({ data: { loading, error, allPosts, _allPostsMeta }, loadMore
  • {index + 1}. - {post.title} + {post.title}
  • diff --git a/examples/with-apollo-and-redux/pages/index.js b/examples/with-apollo-and-redux/pages/index.js index c408f7a2..aad8c55d 100644 --- a/examples/with-apollo-and-redux/pages/index.js +++ b/examples/with-apollo-and-redux/pages/index.js @@ -1,7 +1,5 @@ import App from '../components/App' import Header from '../components/Header' -import Submit from '../components/Submit' -import PostList from '../components/PostList' import withData from '../lib/withData' export default withData((props) => ( diff --git a/examples/with-apollo-and-redux/server.js b/examples/with-apollo-and-redux/server.js index 3f63781d..ea8e20a3 100644 --- a/examples/with-apollo-and-redux/server.js +++ b/examples/with-apollo-and-redux/server.js @@ -37,4 +37,3 @@ app.prepare().then(() => { console.log(`> Ready on http://localhost:${port}`) }) }) - diff --git a/examples/with-tailwindcss/components/head.js b/examples/with-tailwindcss/components/head.js index aea67fa2..f71df168 100644 --- a/examples/with-tailwindcss/components/head.js +++ b/examples/with-tailwindcss/components/head.js @@ -7,23 +7,23 @@ const defaultOGImage = '' const Head = (props) => ( - + {props.title || ''} - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + ) diff --git a/examples/with-tailwindcss/components/nav.js b/examples/with-tailwindcss/components/nav.js index d089475f..b9ad617c 100644 --- a/examples/with-tailwindcss/components/nav.js +++ b/examples/with-tailwindcss/components/nav.js @@ -1,6 +1,4 @@ -import Head from './head' import Link from 'next/link' - const links = [ { href: 'https://github.com/segmentio/create-next-app', label: 'Github' } ].map(link => { @@ -12,7 +10,7 @@ const Nav = () => (