enable react in scope lint rule

main
Mike Fix 6 years ago
parent 67be8f6071
commit 01023bb1ad

@ -15,7 +15,6 @@ module.exports = {
}, },
plugins: ['react', 'import'], plugins: ['react', 'import'],
rules: { rules: {
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off', 'react/prop-types': 'off',
'react/display-name': 'off', 'react/display-name': 'off',
'react/jsx-uses-react': 'error', 'react/jsx-uses-react': 'error',

@ -1,3 +1,4 @@
import React from 'react'
import Head from 'next/head' import Head from 'next/head'
import { THEMES, THEMES_HASH } from '../lib/constants' import { THEMES, THEMES_HASH } from '../lib/constants'
import Reset from './style/Reset' import Reset from './style/Reset'

@ -1,3 +1,5 @@
import React from 'react'
const Overlay = props => ( const Overlay = props => (
<div className="dnd-container"> <div className="dnd-container">
{props.isOver ? <div className="dnd-overlay">{props.title}</div> : null} {props.isOver ? <div className="dnd-overlay">{props.title}</div> : null}

@ -1,3 +1,4 @@
import React from 'react'
import Document, { Head, Main, NextScript } from 'next/document' import Document, { Head, Main, NextScript } from 'next/document'
export default class extends Document { export default class extends Document {

@ -1,3 +1,4 @@
import React from 'react'
import Page from '../components/Page' import Page from '../components/Page'
import { COLORS } from '../lib/constants' import { COLORS } from '../lib/constants'

Loading…
Cancel
Save