mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 04:26:32 +08:00
Fixed: 373791684 Change-Id: If9729360cf7260b9cbf068b9cfa5f6876a60cada No-Presubmit: True Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5933853 Auto-Submit: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Philip Pfaffe <pfaffe@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Custom ESLint rules for Chromium DevTools
The lib/ folder contains a set of ESLint rules
specific to Chromium DevTools. These rules are executed as part of the
npm run lint
command and implicitly via the Presubmit checks.
Testing the rules
When writing a custom ESLint rule, place the logic into a file lib/foo.js and
add a corresponding test for the logic to tests/foo_test.js.
You can use
npm run eslint-test
to run the tests for the custom ESLint rules.