Closed theMasix closed 5 months ago
@theMasix I can't reproduce this. And I don't seem to see any panda usage in this file. Any more information you think could be helpful?
@anubra266 here's a simpler reproduction. It seems that the inclusion of @babel/eslint-parser
causes the issue.
You're right @drphelps @theMasix
since @typescript-eslint uses TypeScript under the hood, its rules can be made type-aware, which is something Babel doesn't have the ability to do.
https://github.com/babel/babel/tree/main/eslint/babel-eslint-parser#typescript
If your project is a pure TS project, just use @typescript-eslint
as the parser
But If your project has both TS and JS, you can use @babel/eslint-parser as well through overrides
{
parser: "@babel/eslint-parser",
overrides: [
{
"files": ["*.{ts,tsx}"],
"parser": "@typescript-eslint/parser",
}
],
}
Error:
Code of
Accordion/Accordion.stories.tsx
:Environments