Skip to content

Commit 5fe4e1f

Browse files
authored
ESLint: add prefer-arrow-callback rule (#1157)
1 parent 1a68c33 commit 5fe4e1f

File tree

89 files changed

+98
-97
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+98
-97
lines changed

.eslintrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ rules:
3131
linebreak-style:
3232
- 2
3333
- unix
34+
prefer-arrow-callback: 2
3435

3536
globals:
3637
include: false

Applications/Accessories/Soundplant/Online/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ new OnlineInstallerScript()
1111
.checksum("df17f942189618219cd504beee1be0712f4e4e4e")
1212
.category("Accessories")
1313
.executable("Soundplant45.exe")
14-
.preInstall(function (wine) {
14+
.preInstall((wine) => {
1515
new WindowsVersion(wine).withWindowsVersion("win7").go();
1616
});

Applications/Custom/LocalInstaller/Local/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ new LocalInstallerScript()
88
.author("Plata")
99
.category("Custom")
1010
.wineUserSettings(true)
11-
.preInstall(function (wine) {
11+
.preInstall((wine) => {
1212
const wizard = wine.wizard();
1313

1414
const versions = ["win7", "vista", "win2003", "winxp", "win2k", "winnt", "winme", "win98", "win95", "win31"];

Applications/Custom/OnlineInstaller/Online/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ new OnlineInstallerScript()
88
.author("Plata")
99
.category("Custom")
1010
.wineUserSettings(true)
11-
.preInstall(function (wine) {
11+
.preInstall((wine) => {
1212
const wizard = wine.wizard();
1313

1414
const versions = ["win7", "vista", "win2003", "winxp", "win2k", "winnt", "winme", "win98", "win95", "win31"];

Applications/Games/Age of Empires II HD/Steam/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ new SteamScript()
66
.editor("Skybox Labs, Hidden Path Entertainment, Ensemble Studios")
77
.author("Plata")
88
.appId(221380)
9-
.postInstall(function (wine /*, wizard*/) {
9+
.postInstall((wine /*, wizard*/) => {
1010
// skip broken launcher by replacing it with "AoK HD.exe"
1111
var installPath = wine.prefixDirectory() + "drive_c/" + wine.programFiles() + "/Steam/steamapps/common/Age2HD/";
1212
var launcher = installPath + "Launcher.exe";

Applications/Games/Age of Empires III: Complete Collection/Steam/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ new SteamScript()
99
.editor("Microsoft Studios")
1010
.author("Quentin PARIS")
1111
.appId(105450)
12-
.postInstall(function (wine) {
12+
.postInstall((wine) => {
1313
new Mfc42(wine).go();
1414

1515
new OverrideDLL(wine).withMode("native, builtin", ["pidgen"]).go();

Applications/Games/Anno 2070/Local/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ new LocalInstallerScript()
1818
.executable("Anno5.exe")
1919
.wineVersion("3.16")
2020
.wineDistribution("upstream")
21-
.preInstall(function (wine) {
21+
.preInstall((wine) => {
2222
new VirtualDesktop(wine).go();
2323

2424
new Crypt32(wine).go();
@@ -27,7 +27,7 @@ new LocalInstallerScript()
2727

2828
new OverrideDLL(wine).withMode("native, builtin", ["winhttp", "msvcrt40", "msvcr100", "crypt32"]).go();
2929
})
30-
.postInstall(function (wine) {
30+
.postInstall((wine) => {
3131
var versionFile = wine.prefixDirectory() + "/drive_c/Ubisoft/Related Designs/ANNO 2070/update/version.txt";
3232
touch(versionFile);
3333
writeToFile(

Applications/Games/Anno 2070/Uplay/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ new UplayScript()
1111
.wineVersion("4.0-rc3")
1212
.wineDistribution("upstream")
1313
.appId(22)
14-
.preInstall(function (wine) {
14+
.preInstall((wine) => {
1515
new VirtualDesktop(wine).go();
1616
new Corefonts(wine).go();
1717
});

Applications/Games/Assassin's Creed IV Black Flag/Steam/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ new SteamScript()
1010
.appId(242050)
1111
.wineVersion(getLatestStagingVersion)
1212
.wineDistribution("staging")
13-
.postInstall(function (wine /*, wizard*/) {
13+
.postInstall((wine /*, wizard*/) => {
1414
// the automatically installed Uplay version does not update properly
1515
new Uplay(wine).go();
1616
});

Applications/Games/Assassin's Creed Revelations/Steam/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ new SteamScript()
1010
.appId(201870)
1111
.wineVersion(getLatestStagingVersion)
1212
.wineDistribution("staging")
13-
.postInstall(function (wine /*, wizard*/) {
13+
.postInstall((wine /*, wizard*/) => {
1414
new Uplay(wine).go();
1515
});

0 commit comments

Comments
 (0)