atlassian-labs / compiled

A familiar and performant compile time CSS-in-JS library for React.
https://compiledcssinjs.com
Apache License 2.0
1.98k stars 68 forks source link

Add `importSources` option to jsx-pragma rule #1622

Closed dddlr closed 7 months ago

dddlr commented 7 months ago

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 an importSources option to specify what these additional libraries are. This option affects two other options:

changeset-bot[bot] commented 7 months ago

🦋 Changeset detected

Latest commit: 264661aba0527add691c864c166c20b8736b1f0a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------------------- | ----- | | @compiled/eslint-plugin | Patch |

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