screeps-typescript-starter
screeps-typescript-starter copied to clipboard
Remove obsolete prettier/@typescript-eslint for eslint ^8.0.0
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.
^ what a pain in the ass, probably spent 1 hour trying to make prettier format on save, this fixed it 😄