0

my code contains :

/** @jsx jsx */

import { jsx, css } from '@emotion/core';

but eslint has error : Unused import { jsx, css } from '@emotion/core'. how can I remove this error from my files? and I add this rule to my eslintrc.js file but it doesn't help:

  rules: {
    '@typescript-eslint/no-unused-vars': 'off',
  }

thank you for your help!

Negin
  • 113
  • 2
  • 15
  • can you tried setup new project with your change only and see what happen? with current information it does not enough to do debug – lehanh Oct 10 '22 at 08:26
  • @lehanh Sorry, No, I can't. Do you need information about eslintrc or package.json? – Negin Oct 10 '22 at 08:34
  • Does this answer your question? [emotion-js on Create React App - 'jsx' is defined but never used](https://stackoverflow.com/questions/60355453/emotion-js-on-create-react-app-jsx-is-defined-but-never-used) – voiarn Oct 10 '22 at 09:22
  • @vioarn I saw the post before and tried the answers but nothing changed. – Negin Oct 10 '22 at 09:36

0 Answers0