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!

4
  • can you tried setup new project with your change only and see what happen? with current information it does not enough to do debug Commented Oct 10, 2022 at 8:26
  • @lehanh Sorry, No, I can't. Do you need information about eslintrc or package.json? Commented Oct 10, 2022 at 8:34
  • Does this answer your question? emotion-js on Create React App - 'jsx' is defined but never used Commented Oct 10, 2022 at 9:22
  • @vioarn I saw the post before and tried the answers but nothing changed. Commented Oct 10, 2022 at 9:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.