tree: b551a3e2a4e818a024faabd7dfbad44c2a1d0a2c [path history] [tgz]
  1. lib/
  2. tests/
  3. README.md
scripts/eslint_rules/README.md

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.