elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.48k stars 8.04k forks source link

Add ESLint rule to prevent bad imports #171037

Open delanni opened 8 months ago

delanni commented 8 months ago

Some (probably automatic) imports may break storybook (or possibly other) builds.

The bad import looks like this:

import { css } from '@emotion/react/dist/emotion-react.cjs';

but it should be like this:

import { css } from '@emotion/react';

See: https://github.com/elastic/kibana/pull/171033

elasticmachine commented 8 months ago

Pinging @elastic/kibana-operations (Team:Operations)