ESLint suggestion on React import

2

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

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

The system works everything ok, and all other messages I managed to fix, but I'm not finding a way.

    
asked by anonymous 29.08.2017 / 18:36

1 answer

2

That means you have a custom rule that ESLint can not find. This rule was discontinued in version 7 . And it says like this:

  

Remove deprecated require-extension rule, use the eslint-plugin-import extensions rule instead

That is, switch and use eslint-plugin-import .

    
29.08.2017 / 19:32