my eslint is calling out an error on my TS code which should work:
const foo = {
key1: 'value1',
key2: 'value2'
};
type MyType = keyof typeof foo;
ESLint: Parsing error: Unexpected token `typeof`, expected the token `;`(prettier/prettier
App is created by create-react-app
tool with some default config for eslint and I added prettier support, here is my config of all of that:
// eslintrc
"extends": [
"react-app",
"react-app/jest",
"eslint:recommended",
"plugin:prettier/recommended"
],
here is printscreen of my IDE with the error
Any ideas? Thanks!
Edit1: actually I have found out that plugin:prettier/recommended
is causing it and when I remove it will stop calling out that error. However I would like to have this plugin added