mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 17:27:22 +08:00
If you're in the front_end directory and you mistakenly include front_end in an import, e.g: import * as UI from '../../front_end/ui/ui.js'; instead of: import * as UI from '../ui/ui.js'; It will cause problems in a release build. This CL lands an ESLint rule to ban these, but still allows it for unit tests. Fixed: 1157057 Change-Id: Ia49279794616568f9e88241152e3412fcd9a8b36 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2581547 Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>