Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

ESLint with React gives `no-unused-vars` errors

  • 0

I’ve setup eslint & eslint-plugin-react.

When I run ESLint, the linter returns no-unused-vars errors for each React component.

I’m assuming it’s not recognizing that I’m using JSX or React syntax. Any ideas?

 

Click to rate this post!
[Total: 0 Average: 0]
Share This Post
Share
  1. In your .eslintrc.json, under extends, include the following plugin:

    'extends': [
        'plugin:react/recommended'
    ]

    Source

    • 0
Leave an answer

Leave an answer

Browse

close