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')