From 116c5a25e7966c8ca8438c525c30ca835e142467 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 20 May 2022 17:05:20 +0200 Subject: [PATCH] Add eslint key-spacing check --- src/librustdoc/html/static/.eslintrc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/librustdoc/html/static/.eslintrc.js b/src/librustdoc/html/static/.eslintrc.js index 6b63e3b714a3b..cb163d540e0a8 100644 --- a/src/librustdoc/html/static/.eslintrc.js +++ b/src/librustdoc/html/static/.eslintrc.js @@ -42,5 +42,9 @@ module.exports = { "error", { "before": true, "after": true } ], + "key-spacing": [ + "error", + { "beforeColon": false, "afterColon": true, "mode": "strict" } + ], } };