Parsing error: Unexpected reserved word 'interface'.
saadbahir opened this issue · comments
I am running in this eslint errors in the typescript files with an interface
Parsing error: Unexpected reserved word 'interface'.
interface FormInputProps {
submitNewSheet: (sheetName: string) => {
name: string;
index: number;
isActive: boolean;
};
}
Has anyone encountered a similar error?
Not sure as it works for me with my setup. Maybe you can share which code editor and OS you're using?
Also does it happen for you with a fresh clone and install of this repo?
thanks @enuchi for your answer!
I am using VScode with MacOS Big Sur v11
This indeed happens with a fresh clone and install of this repo
@enuchi I fixed it by replacing
"parser": "@babel/eslint-parser"
by
"parser": "@typescript-eslint/parser"
in the file /src/client/.eslintrc.json