You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I can't quite make this work, I hoped you could help.
When trying to commit the check returns an error:
git commit -m "project setup"
yarn run v1.22.10
$ tsc --project tsconfig.json --pretty --noEmit
✨ Done in 1.74s.
yarn run v1.22.10
$ eslint --ext js,jsx,ts,tsx --fix .
Oops! Something went wrong! :(
ESLint: 7.20.0
ESLint couldn't find the config "plugin:prettier/@typescript-eslint" to extend from. Please check that the name of the config is correct.
The config "plugin:prettier/@typescript-eslint" was referenced from the config file in "/Users/t-mac/Repositories/websites/benno_hanke/.eslintrc.js".
If you still have problems, please stop by https://eslint.org/chat/help to chat with the team.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
husky - pre-commit hook exited with code 2 (error)
How can I fix this?
..I wasn't able to find any solution for this on the web.
The text was updated successfully, but these errors were encountered:
Hi, thank you for reporting this bug. I looked into it and this is because of the latest upgrade of eslint-config-prettier package to version 8.0.0. In this PR, the package made the plugin:prettier/@typescript-eslint useless and thus disabled it.
So in order to fix your error, you just have to remove the 'prettier/@typescript-eslint' line from your eslintrc.js:
Hello,
First of all - thank you for your work.
As I can't quite make this work, I hoped you could help.
When trying to commit the check returns an error:
How can I fix this?
..I wasn't able to find any solution for this on the web.
The text was updated successfully, but these errors were encountered: