From 01023bb1ad1872952033ec93e5e79ba869447040 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Mon, 1 Oct 2018 22:39:14 -0700 Subject: [PATCH] enable react in scope lint rule --- .eslintrc.js | 1 - components/Meta.js | 1 + components/Overlay.js | 2 ++ pages/_document.js | 1 + pages/about.js | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index b2630ea..7256468 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -15,7 +15,6 @@ module.exports = { }, plugins: ['react', 'import'], rules: { - 'react/react-in-jsx-scope': 'off', 'react/prop-types': 'off', 'react/display-name': 'off', 'react/jsx-uses-react': 'error', diff --git a/components/Meta.js b/components/Meta.js index 0bb1943..c701652 100644 --- a/components/Meta.js +++ b/components/Meta.js @@ -1,3 +1,4 @@ +import React from 'react' import Head from 'next/head' import { THEMES, THEMES_HASH } from '../lib/constants' import Reset from './style/Reset' diff --git a/components/Overlay.js b/components/Overlay.js index 9f3f53a..59867e7 100644 --- a/components/Overlay.js +++ b/components/Overlay.js @@ -1,3 +1,5 @@ +import React from 'react' + const Overlay = props => (
{props.isOver ?
{props.title}
: null} diff --git a/pages/_document.js b/pages/_document.js index c11f0d5..f7d475e 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -1,3 +1,4 @@ +import React from 'react' import Document, { Head, Main, NextScript } from 'next/document' export default class extends Document { diff --git a/pages/about.js b/pages/about.js index 39f2eb5..78d93d7 100644 --- a/pages/about.js +++ b/pages/about.js @@ -1,3 +1,4 @@ +import React from 'react' import Page from '../components/Page' import { COLORS } from '../lib/constants'