about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-25 13:57:08 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-25 13:57:08 +0200
commit33245e0bb38a35ca1cdcebbfc9e2b75a271fce28 (patch)
tree26659909926f6fe658a16f2c63fa726e44095088 /src/librustdoc/html
parent4dbc6764cfda9b760a854eac6e4a4600add31c46 (diff)
downloadrust-33245e0bb38a35ca1cdcebbfc9e2b75a271fce28.tar.gz
rust-33245e0bb38a35ca1cdcebbfc9e2b75a271fce28.zip
Add new eslint rule "comma-style"
Diffstat (limited to 'src/librustdoc/html')
-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 509f2841c5d..64647177cbd 100644
--- a/src/librustdoc/html/static/.eslintrc.js
+++ b/src/librustdoc/html/static/.eslintrc.js
@@ -51,5 +51,6 @@ module.exports = {
         "space-before-function-paren": ["error", "never"],
         "space-before-blocks": "error",
         "comma-dangle": ["error", "always-multiline"],
+        "comma-style": ["error", "last"],
     }
 };