TypeScript ESLint Parser
Changed the parser in the .eslintrc.js
file from babel-eslint
to typescript-eslint-parser
. This will no longer throw errors when running yarn lint
when using TypeScript outside of the component.
This will no longer throw a lint error.
const foo = {
text: "test",
url: ""
} as Link;
Thanks for the support, Roman!