Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete prettier/@typescript-eslint for eslint ^8.0.0 #163

Open
Tanimodori opened this issue Feb 11, 2022 · 1 comment
Open

Remove obsolete prettier/@typescript-eslint for eslint ^8.0.0 #163

Tanimodori opened this issue Feb 11, 2022 · 1 comment

Comments

@Tanimodori
Copy link

Eslint output these following lines when file was saved.

  Message: Request textDocument/codeAction failed with message: Cannot read config file: <PATH>\screeps-typescript-starter\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: <PATH>\screeps-typescript-starter\.eslintrc.js
  Code: -32603 

In .eslintrc.js, change

  extends: [
    ...,
    "prettier/@typescript-eslint",
    ...,
  ],

to

  extends: [
    ...,
    "prettier",
    ...,
  ],

would fix this issue.

@simonboasaeter
Copy link

^ what a pain in the ass, probably spent 1 hour trying to make prettier format on save, this fixed it 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants