Closed dddlr closed 7 months ago
Latest commit: 264661aba0527add691c864c166c20b8736b1f0a
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Currently, the
jsx-pragma
rule only supports detecting and handling@compiled/react
to ensure the JSX pragma is there.However, with the
createStrictAPI
from contributions by @kylorhall-atlassian and @itsdouges, we might have Compiled APIs being imported by other libraries (e.g.@atlaskit/css
). We add animportSources
option to specify what these additional libraries are. This option affects two other options:detectConflictWithOtherLibraries
option, where we detect whether Compiled imports conflict with Emotion importsonlyRunIfImportingCompiled
option, where we only run this rule if a Compiled import is used in the file.