We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 940ed5d commit fc7f321Copy full SHA for fc7f321
packages/eslint-plugin/test/rules/jsx-import.test.ts
@@ -284,6 +284,22 @@ let ele2 = <div css={{}} />
284
285
`.trim()
286
},
287
+ {
288
+ settings: { react: { pragma: 'jsx' } },
289
+ code: `
290
+import { css } from '@emotion/react'
291
+let ele = <div css={{}} />
292
+ `.trim(),
293
+ errors: [
294
295
+ messageId: 'cssPropWithPragma'
296
+ }
297
+ ],
298
+ output: `
299
+import { css, jsx } from '@emotion/react'
300
301
+ `.trim()
302
+ },
303
{
304
code: `
305
/** @jsx jsx */
0 commit comments