From 25b232eccc04795a869ff60eb6453180e41cdd03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Mon, 21 Sep 2020 11:41:06 +0200 Subject: [PATCH] Fix missing `preact.h` import, enable lint for that Fixes #2539 --- .eslintrc.json | 1 + packages/@uppy/dashboard/src/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/.eslintrc.json b/.eslintrc.json index 2c69f18d9..016f523b6 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -15,6 +15,7 @@ "jsx-quotes": ["error", "prefer-double"], "compat/compat": ["error"], "react/jsx-handler-names": ["warn"], // maybe we want to do this in the future? + "react/react-in-jsx-scope": ["error"], "jsdoc/check-alignment": ["warn"], "jsdoc/check-examples": ["warn"], diff --git a/packages/@uppy/dashboard/src/index.js b/packages/@uppy/dashboard/src/index.js index 9a8fdc063..e0cb51723 100644 --- a/packages/@uppy/dashboard/src/index.js +++ b/packages/@uppy/dashboard/src/index.js @@ -1,3 +1,4 @@ +const { h } = require('preact') const { Plugin } = require('@uppy/core') const Translator = require('@uppy/utils/lib/Translator') const DashboardUI = require('./components/Dashboard')