Skip to content

Commit 6be8b9c

Browse files
authored
Rollup merge of #97792 - GuillaumeGomez:eslint-checks, r=Dylan-DPC
More eslint checks Here is the list of newly added eslint checks: * [no-confusing-arrow](https://eslint.org/docs/rules/no-confusing-arrow) * [no-div-regex](https://eslint.org/docs/rules/no-div-regex) * [no-floating-decimal](https://eslint.org/docs/rules/no-floating-decimal) * [no-implicit-globals](https://eslint.org/docs/rules/no-implicit-globals) * [no-implied-eval](https://eslint.org/docs/rules/no-implied-eval) * [no-label-var](https://eslint.org/docs/rules/no-label-var) Since you already reviewed the previous ones: r? `@Dylan-DPC`
2 parents c4bfd10 + cd5e73b commit 6be8b9c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/librustdoc/html/static/.eslintrc.js

+6
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,11 @@ module.exports = {
7878
"block-scoped-var": "error",
7979
"guard-for-in": "error",
8080
"no-alert": "error",
81+
"no-confusing-arrow": "error",
82+
"no-div-regex": "error",
83+
"no-floating-decimal": "error",
84+
"no-implicit-globals": "error",
85+
"no-implied-eval": "error",
86+
"no-label-var": "error",
8187
}
8288
};

src/librustdoc/html/static/js/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ function loadCss(cssFileName) {
882882
["-", "Collapse all sections"],
883883
].map(x => "<dt>" +
884884
x[0].split(" ")
885-
.map((y, index) => (index & 1) === 0 ? "<kbd>" + y + "</kbd>" : " " + y + " ")
885+
.map((y, index) => ((index & 1) === 0 ? "<kbd>" + y + "</kbd>" : " " + y + " "))
886886
.join("") + "</dt><dd>" + x[1] + "</dd>").join("");
887887
const div_shortcuts = document.createElement("div");
888888
addClass(div_shortcuts, "shortcuts");

0 commit comments

Comments
 (0)