mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-03 02:21:05 +08:00
Bug: None Change-Id: I1ce59f5aa9c3f99a7be0e6b4c114df5b6e7fe0ee Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6004728 Reviewed-by: Simon Zünd <szuend@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@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.