mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 21:47:04 +00:00
Add new eslint rule "space-before-function-paren"
This commit is contained in:
parent
231b47b2b9
commit
6c7156d488
@ -48,5 +48,6 @@ module.exports = {
|
||||
],
|
||||
"func-call-spacing": ["error", "never"],
|
||||
"space-infix-ops": "error",
|
||||
"space-before-function-paren": ["error", "never"],
|
||||
}
|
||||
};
|
||||
|
@ -63,7 +63,7 @@ function showMain() {
|
||||
removeClass(document.getElementById(MAIN_ID), "hidden");
|
||||
}
|
||||
|
||||
(function () {
|
||||
(function() {
|
||||
window.rootPath = getVar("root-path");
|
||||
window.currentCrate = getVar("current-crate");
|
||||
window.searchJS = resourcePath("search", ".js");
|
||||
@ -929,7 +929,7 @@ function loadCss(cssFileName) {
|
||||
searchState.setup();
|
||||
}());
|
||||
|
||||
(function () {
|
||||
(function() {
|
||||
let reset_button_timeout = null;
|
||||
|
||||
window.copy_path = but => {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
(function () {
|
||||
(function() {
|
||||
// Number of lines shown when code viewer is not expanded
|
||||
const MAX_LINES = 10;
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
(function () {
|
||||
(function() {
|
||||
const isSettingsPage = window.location.pathname.endsWith("/settings.html");
|
||||
|
||||
function changeSetting(settingName, value) {
|
||||
|
@ -187,7 +187,7 @@ function highlightSourceLines(match) {
|
||||
}
|
||||
}
|
||||
|
||||
const handleSourceHighlight = (function () {
|
||||
const handleSourceHighlight = (function() {
|
||||
let prev_line_id = 0;
|
||||
|
||||
const set_fragment = name => {
|
||||
|
@ -4,7 +4,7 @@ const darkThemes = ["dark", "ayu"];
|
||||
window.currentTheme = document.getElementById("themeStyle");
|
||||
window.mainTheme = document.getElementById("mainThemeStyle");
|
||||
|
||||
const settingsDataset = (function () {
|
||||
const settingsDataset = (function() {
|
||||
const settingsElement = document.getElementById("default-settings");
|
||||
if (settingsElement === null) {
|
||||
return null;
|
||||
@ -163,7 +163,7 @@ function useSystemTheme(value) {
|
||||
}
|
||||
}
|
||||
|
||||
const updateSystemTheme = (function () {
|
||||
const updateSystemTheme = (function() {
|
||||
if (!window.matchMedia) {
|
||||
// fallback to the CSS computed value
|
||||
return () => {
|
||||
|
Loading…
Reference in New Issue
Block a user