I have this type:
export type ICfnOutput = {
ENDPOINTS: {
[key in `${keyof typeof MSERVICES}_ENDPOINT`]: string
},
USER_POOL_CLIENT_ID: string,
amplifyClientUrl: string,
USER_POOL_ID: string
}
When I run the command:
eslint . --ext .ts
I get the following error:
error Parsing error: Type expected
.eslintrc.json
{
"env": {
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {}
}
Im using eslint v8.21.0, how can I avoid this, or should I ignore it and add an ignore command because seems to be an eslint problem
The code is working fine is just when I lint eslint takes it as an error.
@typescript-eslint? Can you post it here?MSERVICES, this seems to work with or without your config in the typescript-eslint playground. Are you calling the righteslint? Do you neednpx eslint?