summaryrefslogtreecommitdiffstats
path: root/docs/code-quality/lint/linters/eslint-plugin-mozilla/reject-some-requires.rst
blob: 476dcbcb94034dbb6be853eee89cf49d151867e5 (plain)
1
2
3
4
5
6
reject-some-requires
====================

This takes an option, a regular expression.  Invocations of
``require`` with a string literal argument are matched against this
regexp; and if it matches, the ``require`` use is flagged.