screeps-typescript-starter icon indicating copy to clipboard operation
screeps-typescript-starter copied to clipboard

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

Open Tanimodori opened this issue 3 years ago • 1 comments
trafficstars

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.

Tanimodori avatar Feb 11 '22 15:02 Tanimodori

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

simonboasaeter avatar Jul 26 '22 12:07 simonboasaeter