diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-05-27 22:21:41 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-05-27 22:21:41 +0200 |
| commit | b7d6a429b5abd50fa62e50c72117a8387e43c032 (patch) | |
| tree | 9670552c4f5bb185d20a0470241e0c61554e52fd | |
| parent | 1ab98933fa75d72e882b86feac1a0be3a5b02cb0 (diff) | |
| download | rust-b7d6a429b5abd50fa62e50c72117a8387e43c032.tar.gz rust-b7d6a429b5abd50fa62e50c72117a8387e43c032.zip | |
Add "arrow-parens" eslint rule
| -rw-r--r-- | src/librustdoc/html/static/.eslintrc.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/.eslintrc.js b/src/librustdoc/html/static/.eslintrc.js index 7afd09b34d3..3ad7f4d9e06 100644 --- a/src/librustdoc/html/static/.eslintrc.js +++ b/src/librustdoc/html/static/.eslintrc.js @@ -54,5 +54,6 @@ module.exports = { "comma-style": ["error", "last"], "max-len": ["error", { "code": 100, "tabWidth": 4 }], "eol-last": ["error", "always"], + "arrow-parens": ["error", "as-needed"], } }; |
