diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2022-05-21 11:39:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-21 11:39:49 +0200 |
| commit | e5c7b21f395d57e870eb90292726d0824a34cd10 (patch) | |
| tree | cbaabf6bbf019042f08f5deeadba63345dd42dea | |
| parent | 1210b50dbb37b24178bfdf8494daa2bddcaf1c68 (diff) | |
| parent | 116c5a25e7966c8ca8438c525c30ca835e142467 (diff) | |
| download | rust-e5c7b21f395d57e870eb90292726d0824a34cd10.tar.gz rust-e5c7b21f395d57e870eb90292726d0824a34cd10.zip | |
Rollup merge of #97218 - GuillaumeGomez:eslint-checks, r=notriddle
Add eslint checks
The first check is to ensure that `=>` is always surrounded with whitespaces.
The second is to ensure that the dict objects looks like this: `{"a": 2}` and not `{"a" : 2}` or `{"a":2}`.
r? ``@notriddle``
| -rw-r--r-- | src/librustdoc/html/static/.eslintrc.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/.eslintrc.js b/src/librustdoc/html/static/.eslintrc.js index 9d4c45b8a62..cb163d540e0 100644 --- a/src/librustdoc/html/static/.eslintrc.js +++ b/src/librustdoc/html/static/.eslintrc.js @@ -38,5 +38,13 @@ module.exports = { "error", { "before": true, "after": true } ], + "arrow-spacing": [ + "error", + { "before": true, "after": true } + ], + "key-spacing": [ + "error", + { "beforeColon": false, "afterColon": true, "mode": "strict" } + ], } }; |
