about summary refs log tree commit diff
path: root/src/librustdoc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-25 13:56:27 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-25 13:56:27 +0200
commit4dbc6764cfda9b760a854eac6e4a4600add31c46 (patch)
treec4a0d99d0884562a16554bb975fd42b0c18d502b /src/librustdoc
parentc5e39548877b57c0a5d7bd24c620b1de5eaf648e (diff)
downloadrust-4dbc6764cfda9b760a854eac6e4a4600add31c46.tar.gz
rust-4dbc6764cfda9b760a854eac6e4a4600add31c46.zip
Add new eslint rule "comma-dangle"
Diffstat (limited to 'src/librustdoc')
-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 c67a358fbe1..509f2841c5d 100644
--- a/src/librustdoc/html/static/.eslintrc.js
+++ b/src/librustdoc/html/static/.eslintrc.js
@@ -50,5 +50,6 @@ module.exports = {
         "space-infix-ops": "error",
         "space-before-function-paren": ["error", "never"],
         "space-before-blocks": "error",
+        "comma-dangle": ["error", "always-multiline"],
     }
 };