mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-12 06:53:05 +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",
|
"block-scoped-var": "error",
|
||||||
"guard-for-in": "error",
|
"guard-for-in": "error",
|
||||||
"no-alert": "error",
|
"no-alert": "error",
|
||||||
|
"no-confusing-arrow": "error",
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -882,7 +882,7 @@ function loadCss(cssFileName) {
|
|||||||
["-", "Collapse all sections"],
|
["-", "Collapse all sections"],
|
||||||
].map(x => "<dt>" +
|
].map(x => "<dt>" +
|
||||||
x[0].split(" ")
|
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("");
|
.join("") + "</dt><dd>" + x[1] + "</dd>").join("");
|
||||||
const div_shortcuts = document.createElement("div");
|
const div_shortcuts = document.createElement("div");
|
||||||
addClass(div_shortcuts, "shortcuts");
|
addClass(div_shortcuts, "shortcuts");
|
||||||
|
Loading…
Reference in New Issue
Block a user