Eslint suggestion in React import

Asked

Viewed 71 times

2

On the line import React, { Component } from 'react'; Eslint marks import and brings the following message:

[eslint] Definition for rule 'react/require-extension' was not found (react/require-extension)

The system works all ok, and all other messages I managed to fix, but is not finding way.

1 answer

2


That means you have a custom rule that Eslint can’t find. That rule was discontinued in version 7. And it says so:

Remove deprecated require-Extension Rule, use the Eslint-plugin-import Extensions Rule Instead

That is, change and use Eslint-plugin-import.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.