mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-31 00:53:48 +00:00
Add "no-confusing-arrow" eslint check
This commit is contained in:
parent
fee3a459dd
commit
116eec247a
@ -78,5 +78,6 @@ module.exports = {
|
||||
"block-scoped-var": "error",
|
||||
"guard-for-in": "error",
|
||||
"no-alert": "error",
|
||||
"no-confusing-arrow": "error",
|
||||
}
|
||||
};
|
||||
|
@ -882,7 +882,7 @@ function loadCss(cssFileName) {
|
||||
["-", "Collapse all sections"],
|
||||
].map(x => "<dt>" +
|
||||
x[0].split(" ")
|
||||
.map((y, index) => (index & 1) === 0 ? "<kbd>" + y + "</kbd>" : " " + y + " ")
|
||||
.map((y, index) => ((index & 1) === 0 ? "<kbd>" + y + "</kbd>" : " " + y + " "))
|
||||
.join("") + "</dt><dd>" + x[1] + "</dd>").join("");
|
||||
const div_shortcuts = document.createElement("div");
|
||||
addClass(div_shortcuts, "shortcuts");
|
||||
|
Loading…
Reference in New Issue
Block a user