mui / mui/base-ui

Detection for missing use client directive

Open
#3,524 1 comment 0 reactions 0 assignees View on GitHub
scope: code-infra
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

In some projects we didn't catch 'use client' directives missing, it would be great to have a code infra step that could check about this.

Potential ways we can do this:
- updated eslint plugin: needs to investigate impact on next.js perf
- Look into rollup plugin that can detect all react usage from non-client entrypoints and their fully resolved module graphs
- Do we have any code in BUI where a RSC makes sense?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.