about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-06-03 11:11:33 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-06-03 11:11:33 +0200
commitfe503adf4c023f8f8284262ea2b39bf2ce3fabcf (patch)
tree4852d67a58b02e1758cad9c964d55b7eb230e1e8
parente0cbac6a398b4d0aa73eb590f7fcd1460ef97050 (diff)
downloadrust-fe503adf4c023f8f8284262ea2b39bf2ce3fabcf.tar.gz
rust-fe503adf4c023f8f8284262ea2b39bf2ce3fabcf.zip
Add "no-invalid-regexp" eslint rule
-rw-r--r--src/librustdoc/html/static/.eslintrc.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/.eslintrc.js b/src/librustdoc/html/static/.eslintrc.js
index cf99ed56de1..e6ed3809cdd 100644
--- a/src/librustdoc/html/static/.eslintrc.js
+++ b/src/librustdoc/html/static/.eslintrc.js
@@ -71,5 +71,6 @@ module.exports = {
         "no-duplicate-case": "error",
         "no-ex-assign": "error",
         "no-fallthrough": "error",
+        "no-invalid-regexp": "error",
     }
 };