20
8

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 3 years have passed since last update.

Error: "prettier/@typescript-eslint" has been merged into "prettier" in eslint-config-prettier 8.0.0.

Last updated at Posted at 2021-07-15

エラー

Cannot read config file: /hoge/fuga/node_modules/eslint-config-prettier/@typescript-eslint.js
Error: "prettier/@typescript-eslint" has been merged into "prettier" in eslint-config-prettier 8.0.0. See: https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21
Referenced from: /hoge/fuga/.eslintrc.json

コメント

素直にリンク先を参照。どうやら2021-02-21のFixで"prettier/@typescript-eslint"の記述が不要になったらしい。

The "prettier" config now includes not just ESLint core rules, but also rules from all plugins. Much simpler!

解決策

.eslintrc.json
{
  "extends": [
    "eslint:recommended",
    "plugin:@typescript-eslint/recommended",
    "prettier",
    "prettier/@typescript-eslint" // この行をコメントアウト
  ],~~~
}

至らない部分がある場合は、是非お気軽にコメントいただけると幸いです。

20
8
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
20
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?