feat(linting): restrict direct use of supersetTheme in favor of ThemeProvider (#17001)

* feat: restrict direct use of supersetTheme

* allowing a couple of safe instances of supersetTheme
This commit is contained in:
Evan Rusackas
2021-10-07 08:26:57 -06:00
committed by GitHub
parent 66b0877445
commit 5f73ca85d5
5 changed files with 35 additions and 3 deletions

View File

@@ -17,6 +17,7 @@
* under the License.
*/
import { shallow as enzymeShallow, mount as enzymeMount } from 'enzyme';
// eslint-disable-next-line no-restricted-imports
import { supersetTheme } from '@superset-ui/core';
import { ReactElement } from 'react';
import { ProviderWrapper } from './ProviderWrapper';