0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

The react/require-extension rule is deprecated. Please use the import/extensions rule from eslint-plugin-import instead.

Posted at

ESLint を使っていて、掲題のような警告が表示されたときの対処法です。

下記のように、.eslintrc の rule に react/require-extension を off にする設定を追加すれば警告が表示されなくなります。

.eslintrc
{
  "extends": "airbnb",
  "rules": {
    "react/require-extension": "off"
  }
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?