Skip to content

Commit

Permalink
ESLint: add prefer-arrow-callback rule (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
plata authored Dec 28, 2019
1 parent 1a68c33 commit 5fe4e1f
Show file tree
Hide file tree
Showing 89 changed files with 98 additions and 97 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ rules:
linebreak-style:
- 2
- unix
prefer-arrow-callback: 2

globals:
include: false
Expand Down
2 changes: 1 addition & 1 deletion Applications/Accessories/Soundplant/Online/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ new OnlineInstallerScript()
.checksum("df17f942189618219cd504beee1be0712f4e4e4e")
.category("Accessories")
.executable("Soundplant45.exe")
.preInstall(function (wine) {
.preInstall((wine) => {
new WindowsVersion(wine).withWindowsVersion("win7").go();
});
2 changes: 1 addition & 1 deletion Applications/Custom/LocalInstaller/Local/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ new LocalInstallerScript()
.author("Plata")
.category("Custom")
.wineUserSettings(true)
.preInstall(function (wine) {
.preInstall((wine) => {
const wizard = wine.wizard();

const versions = ["win7", "vista", "win2003", "winxp", "win2k", "winnt", "winme", "win98", "win95", "win31"];
Expand Down
2 changes: 1 addition & 1 deletion Applications/Custom/OnlineInstaller/Online/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ new OnlineInstallerScript()
.author("Plata")
.category("Custom")
.wineUserSettings(true)
.preInstall(function (wine) {
.preInstall((wine) => {
const wizard = wine.wizard();

const versions = ["win7", "vista", "win2003", "winxp", "win2k", "winnt", "winme", "win98", "win95", "win31"];
Expand Down
2 changes: 1 addition & 1 deletion Applications/Games/Age of Empires II HD/Steam/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ new SteamScript()
.editor("Skybox Labs, Hidden Path Entertainment, Ensemble Studios")
.author("Plata")
.appId(221380)
.postInstall(function (wine /*, wizard*/) {
.postInstall((wine /*, wizard*/) => {
// skip broken launcher by replacing it with "AoK HD.exe"
var installPath = wine.prefixDirectory() + "drive_c/" + wine.programFiles() + "/Steam/steamapps/common/Age2HD/";
var launcher = installPath + "Launcher.exe";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ new SteamScript()
.editor("Microsoft Studios")
.author("Quentin PARIS")
.appId(105450)
.postInstall(function (wine) {
.postInstall((wine) => {
new Mfc42(wine).go();

new OverrideDLL(wine).withMode("native, builtin", ["pidgen"]).go();
Expand Down
4 changes: 2 additions & 2 deletions Applications/Games/Anno 2070/Local/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ new LocalInstallerScript()
.executable("Anno5.exe")
.wineVersion("3.16")
.wineDistribution("upstream")
.preInstall(function (wine) {
.preInstall((wine) => {
new VirtualDesktop(wine).go();

new Crypt32(wine).go();
Expand All @@ -27,7 +27,7 @@ new LocalInstallerScript()

new OverrideDLL(wine).withMode("native, builtin", ["winhttp", "msvcrt40", "msvcr100", "crypt32"]).go();
})
.postInstall(function (wine) {
.postInstall((wine) => {
var versionFile = wine.prefixDirectory() + "/drive_c/Ubisoft/Related Designs/ANNO 2070/update/version.txt";
touch(versionFile);
writeToFile(
Expand Down
2 changes: 1 addition & 1 deletion Applications/Games/Anno 2070/Uplay/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ new UplayScript()
.wineVersion("4.0-rc3")
.wineDistribution("upstream")
.appId(22)
.preInstall(function (wine) {
.preInstall((wine) => {
new VirtualDesktop(wine).go();
new Corefonts(wine).go();
});
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ new SteamScript()
.appId(242050)
.wineVersion(getLatestStagingVersion)
.wineDistribution("staging")
.postInstall(function (wine /*, wizard*/) {
.postInstall((wine /*, wizard*/) => {
// the automatically installed Uplay version does not update properly
new Uplay(wine).go();
});
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ new SteamScript()
.appId(201870)
.wineVersion(getLatestStagingVersion)
.wineDistribution("staging")
.postInstall(function (wine /*, wizard*/) {
.postInstall((wine /*, wizard*/) => {
new Uplay(wine).go();
});
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ new SteamScript()
.appId(48190)
.wineVersion(getLatestStagingVersion)
.wineDistribution("staging")
.postInstall(function (wine /*, wizard*/) {
.postInstall((wine /*, wizard*/) => {
new Uplay(wine).go();
});
2 changes: 1 addition & 1 deletion Applications/Games/Audiosurf/Steam/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ new SteamScript()
.editor("Dylan Fitterer")
.author("Brainzyy")
.appId(12900)
.preInstall(function (wine /*, wizard*/) {
.preInstall((wine /*, wizard*/) => {
new QuickTime76(wine).go();
new Corefonts(wine).go();
new Tahoma(wine).go();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ new SteamScript()
.wineVersion(getLatestStagingVersion)
.wineDistribution("staging")
.appId(35140)
.postInstall(function (wine) {
.postInstall((wine) => {
new GLSL(wine).withMode("disabled").go();
new CSMT(wine).go();
});
2 changes: 1 addition & 1 deletion Applications/Games/Batman™: Arkham City/Steam/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ new SteamScript()
.wineVersion(getLatestStagingVersion)
.wineDistribution("staging")
.appId(200260)
.postInstall(function (wine/*, wizard*/) {
.postInstall((wine/*, wizard*/) => {
new CSMT(wine).go();
});
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ new SteamScript()
.author("ImperatorS79")
.wineVersion(getLatestStagingVersion)
.wineDistribution("staging")
.postInstall(function (wine/*, wizard*/) {
.postInstall((wine/*, wizard*/) => {
new CSMT(wine).go();
//maybe needs xact
})
Expand Down
2 changes: 1 addition & 1 deletion Applications/Games/Blizzard app/Online/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ new OnlineInstallerScript()
.executable("Battle.net.exe")
.wineVersion("3.19")
.wineDistribution("staging")
.preInstall(function (wine /*, wizard*/) {
.preInstall((wine /*, wizard*/) => {
new Vcrun2015(wine).go();
new Corefonts(wine).go();
});
2 changes: 1 addition & 1 deletion Applications/Games/Caesar III/Local/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ new LocalInstallerScript()
.author("ImperatorS79")
.category("Games")
.executable("c3.exe")
.postInstall(function (wine) {
.postInstall((wine) => {
new VirtualDesktop(wine).withDimensions(1280, 1024).go();
});
2 changes: 1 addition & 1 deletion Applications/Games/Caesar III/Steam/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ new SteamScript()
.editor("Impressions Games")
.author("ImperatorS79")
.appId(517790)
.postInstall(function (wine) {
.postInstall((wine) => {
new VirtualDesktop(wine).withDimensions(1280, 1024).go();
});
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ new LocalInstallerScript()
.executable("CNC3.exe")
.wineVersion(getLatestStagingVersion)
.wineDistribution("staging")
.preInstall(function (wine) {
.preInstall((wine) => {
new WindowsVersion(wine).withWindowsVersion("winxp").go();

new D3DX9(wine).go();
Expand Down
2 changes: 1 addition & 1 deletion Applications/Games/DC Universe Online/Online/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ new OnlineInstallerScript()
.url("https://launch.daybreakgames.com/installer/DCUO_setup.exe")
.category("Games")
.executable("LaunchPad.exe")
.preInstall(function (wine /*, wizard*/) {
.preInstall((wine /*, wizard*/) => {
new Vcrun2012(wine).go();
new D3DX9(wine).go();
});
2 changes: 1 addition & 1 deletion Applications/Games/Dragon Ball Xenoverse 2/Steam/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ new SteamScript()
.wineDistribution("staging")
.wineArchitecture("amd64")
.appId(454650)
.preInstall(function (wine /*, wizard*/) {
.preInstall((wine /*, wizard*/) => {
new CSMT(wine).go();
//might need dxfullsetup d3d11 and d3d_43 compiler, but test result is old (2.10)
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ new OnlineInstallerScript()
.executable("Spark.exe", ["http://live.theanubianwar.com/Release/Current/EarthEternal.car"])
.wineVersion(getLatestStagingVersion)
.wineDistribution("staging")
.preInstall(function (wine) {
.preInstall((wine) => {
new WindowsVersion(wine).withWindowsVersion("winxp").go();
new Corefonts(wine).go();
new D3DX9(wine).go();
Expand Down
2 changes: 1 addition & 1 deletion Applications/Games/Elite:Dangerous/Steam/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ new SteamScript()
.editor("Frontier Developments")
.author("ImperatorS79")
.wineArchitecture("amd64")
.preInstall(function (wine /*, wizard*/) {
.preInstall((wine /*, wizard*/) => {
new DotNET45(wine).go();
new Corefonts(wine).go();
new Vcrun2015(wine).go();
Expand Down
2 changes: 1 addition & 1 deletion Applications/Games/Enderal/Steam/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ new SteamScript()
.author("Plata")
.appId(72850) // Skyrim appId
.applicationHomepage("http://sureai.net/games/enderal/")
.postInstall(function (wine, wizard) {
.postInstall((wine, wizard) => {
// the SteamScript has installed Skyrim, now install Enderal
var launcher =
wine.prefixDirectory() + "drive_c/" + wine.programFiles() + "/Steam/steamapps/common/Skyrim/Enderal Launcher.exe";
Expand Down
2 changes: 1 addition & 1 deletion Applications/Games/Ether One Redux/Steam/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ new SteamScript()
.wineArchitecture("amd64")
.executable("Steam.exe", ["-silent", "-applaunch", 391920, "-nosplash", "-opengl4"])
.gameOverlay(false)
.postInstall(function (wine) {
.postInstall((wine) => {
new WindowsVersion(wine).withApplicationWindowsVersion("EtherOne-Win32-Shipping.exe", "win7").go();
});
2 changes: 1 addition & 1 deletion Applications/Games/Far Cry 2/Steam/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ new SteamScript()
.wineVersion(getLatestStagingVersion)
.wineDistribution("staging")
.appId(19900)
.preInstall(function (wine /*, wizard*/) {
.preInstall((wine /*, wizard*/) => {
new Secur32(wine).go();
new CSMT(wine).go();
});
2 changes: 1 addition & 1 deletion Applications/Games/GOG Galaxy/Online/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ new OnlineInstallerScript()
.wineArchitecture("amd64")
.wineVersion(getLatestStagingVersion)
.wineDistribution("staging")
.preInstall(function (wine /*, wizard*/) {
.preInstall((wine /*, wizard*/) => {
new Corefonts(wine).go();
// Probably needed for self-updater
new Vcrun2017(wine).go();
Expand Down
2 changes: 1 addition & 1 deletion Applications/Games/Guild Wars 2/Local/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ new LocalInstallerScript()
.executable("Gw2.exe")
.wineVersion(getLatestStagingVersion)
.wineDistribution("staging")
.preInstall(function (wine) {
.preInstall((wine) => {
// avoid that launcher freezes the complete system
new VirtualDesktop(wine).withDimensions(1280, 1024).go();
new CSMT(wine).go();
Expand Down
2 changes: 1 addition & 1 deletion Applications/Games/Guild Wars 2/Online/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ new OnlineInstallerScript()
.executable("Gw2.exe")
.wineVersion(getLatestStagingVersion)
.wineDistribution("staging")
.preInstall(function (wine) {
.preInstall((wine) => {
// avoid that launcher freezes the complete system
new VirtualDesktop(wine).withDimensions(1280, 1024).go();
new CSMT(wine).go();
Expand Down
2 changes: 1 addition & 1 deletion Applications/Games/Hearthstone/Online/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ new OnlineInstallerScript()
.executable("Battle.net.exe")
.wineVersion(getLatestStagingVersion)
.wineDistribution("staging")
.preInstall(function (wine /*, wizard*/) {
.preInstall((wine /*, wizard*/) => {
new Vcrun2015(wine).go();
new Corefonts(wine).go();
});
2 changes: 1 addition & 1 deletion Applications/Games/Heroes of the Storm/Online/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ new OnlineInstallerScript()
//The checksum is different each time you download
.wineVersion(getLatestStagingVersion)
.wineDistribution("staging")
.preInstall(function (wine) {
.preInstall((wine) => {
new WindowsVersion(wine).withWindowsVersion("winxp").go();

new Vcrun2015(wine).go();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ new SteamScript()
.editor("Triangle Studios")
.author("madoar")
.appId(342620)
.preInstall(function (wine /*, wizard*/) {
.preInstall((wine /*, wizard*/) => {
new D3DX10(wine).go();
});
4 changes: 2 additions & 2 deletions Applications/Games/League of Legends/Online/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ new CustomInstallerScript()
.editor("Riot Games")
.applicationHomepage("http://leagueoflegends.com/")
.author("Plata, feanor12, Thog")
.installationCommand(function (wizard) {
.installationCommand((wizard) => {
// Select the region and download the setup file
////////////////////////////////////////////////
var regions = [
Expand Down Expand Up @@ -98,7 +98,7 @@ new CustomInstallerScript()
.category("Games")
.wineDistribution("staging")
.wineVersion(getLatestStagingVersion)
.preInstall(function (wine) {
.preInstall((wine) => {
new WindowsVersion(wine).withWindowsVersion("winxp").go();

new D3DX9(wine).go();
Expand Down
4 changes: 2 additions & 2 deletions Applications/Games/Lego Rock Raiders/Local/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ new LocalInstallerScript()
.executable("LegoRR.exe")
.wineVersion("3.0.3")
.wineDistribution("upstream")
.preInstall(function (wine, wizard) {
.preInstall((wine, wizard) => {
new Amstream(wine).go();
new Quartz(wine).go();
new Devenum(wine).go();
new D3drm(wine).go();

wizard.message(tr("When the game ask to install DirectX Media click yes. Click no when it ask for DirectX 6."));
})
.postInstall(function (wine, wizard) {
.postInstall((wine, wizard) => {
wizard.message(
tr(
"This game needs a copy protection patch to work. It may be illegal in your country to patch copy protection. You must patch the game yourself."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ new OnlineInstallerScript()
.category("Games")
.wineDistribution("staging")
.wineVersion(getLatestStagingVersion)
.preInstall(function (wine) {
.preInstall((wine) => {
new DXVK(wine).go();
new TakeFocus(wine).withMode("N").go();
})
Expand Down
2 changes: 1 addition & 1 deletion Applications/Games/Mass Effect 2/Origin/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ new OriginScript()
.appId(
"1003291,1005288,1003290,mass_effect_2_de,mass_effect_2_dd,mass_effect_2_fr,mass_effect_2_it,mass_effect_2_pl,mass_effect_2_ce"
)
.postInstall(function (wine, wizard) {
.postInstall((wine, wizard) => {
//this must be done while Origin is on, otherwise Origin will simply redownload the .cab files
wizard.message(
tr(
Expand Down
2 changes: 1 addition & 1 deletion Applications/Games/Mass Effect/Steam/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ new SteamScript()
.editor("BioWare")
.author("ImperatorS79")
.appId(17460)
.postInstall(function (wine, wizard) {
.postInstall((wine, wizard) => {
wizard.message(
tr(
"If you have sound issues, please edit the BIOEngine.ini and/or BaseEngine.ini file in {0}/drive_c/Program Files/Steam/steamapps/common/Mass Effect/Engine/Config/\n\nAnd add the following under [ISACTAudio.ISACTAudioDevice] :\n\nDeviceName=Generic Software\nUseEffectsProcessing=False\n\n",
Expand Down
2 changes: 1 addition & 1 deletion Applications/Games/Mirror's Edge/Steam/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ new SteamScript()
.editor("DICE")
.author("Plata")
.appId(17410)
.preInstall(function (wine) {
.preInstall((wine) => {
new PhysX(wine).go();

new Managed(wine).withManagedApplication("MirrorsEdge.exe", false).go();
Expand Down
2 changes: 1 addition & 1 deletion Applications/Games/Niko: Through The Dream/Steam/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ new SteamScript()
.editor("Studio Paint")
.author("Plata")
.appId(296550)
.postInstall(function (wine) {
.postInstall((wine) => {
new DotNET40(wine).go();

new Managed(wine).withManagedApplication("NIKO.exe", false).go();
Expand Down
4 changes: 2 additions & 2 deletions Applications/Games/Origin/Local (Legacy)/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ new LocalInstallerScript()
.category("Games")
.executable("Origin.exe")
.wineVersion(getLatestDevelopmentVersion)
.preInstall(function (wine, wizard) {
.preInstall((wine, wizard) => {
wizard.message(
tr(
'When Origin launches, you will get an error message ("Your update could not be completed."). This is ok. Just close the popup.'
)
);
})
.postInstall(function (wine, wizard) {
.postInstall((wine, wizard) => {
var originDir = wine.prefixDirectory() + "drive_c/" + wine.programFiles() + "/Origin/";

new Downloader()
Expand Down
Loading

0 comments on commit 5fe4e1f

Please sign in to comment.