-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
tools: run eslint on mdx files #92324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
// Exclude MDX files from type-aware linting | ||
// https://github.com/orgs/mdx-js/discussions/2454 | ||
const MDXIgnore = ['**/*.mdx']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this is also used in plugin/typescript-eslint/custom
which should not include type-aware rules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to update the comment, it should say typescript linting.
static/app/styles/colors.mdx
Outdated
<figure> | ||
export function ExampleCard({imgSrc, text, isPositive}) { | ||
return ( | ||
<figure> | ||
<ExampleImg src={imgSrc} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is prettier not being applied either?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this PR not yet, I added it in a separate PR
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #92324 +/- ##
==========================================
- Coverage 87.91% 86.73% -1.19%
==========================================
Files 10209 10199 -10
Lines 584833 584050 -783
Branches 22686 22643 -43
==========================================
- Hits 514185 506596 -7589
- Misses 70226 77033 +6807
+ Partials 422 421 -1 |
Enable eslint linting for mdx files. Currently with type aware linting disabled as MDX doesn't support TS expressions --------- Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Enable eslint linting for mdx files. Currently with type aware linting disabled as MDX doesn't support TS expressions