Patch Changes
-
be019f1: Add detectConflictWithOtherLibraries and onlyRunIfImportingCompiled config options to jsx-pragma ESLint rule. Both are set to true by default, hence the breaking change.
detectConflictWithOtherLibraries
raises a linting error ifcss
orjsx
is imported from@emotion/react
(or@emotion/core
) in the same file
as a Compiled import. Set to true by default.onlyRunIfImportingCompiled
sets this rule to only suggest adding the JSX pragma if thecss
orcssMap
functions are imported from@compiled/react
, as opposed to whenever thecss
attribute is detected at all. Set to false by default.