Skip to content

Commit c82041b

Browse files
authored
ESLint: force indentation with 4 spaces (#539)
1 parent 71c88db commit c82041b

17 files changed

Lines changed: 156 additions & 151 deletions

File tree

.eslintrc.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ extends:
55
env:
66
nashorn: true
77

8-
valid-jsdoc: 2
8+
rules:
9+
valid-jsdoc: 2
10+
indent:
11+
- 2
12+
- 4
13+
- {SwitchCase: 1, ArrayExpression: first}
914

1015
globals:
1116
include: false

Applications/Accessories/ImgBurn/Online/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include(["Engines", "Wine", "QuickScript", "OnlineInstallerScript"]);
1+
include(["Engines", "Wine", "QuickScript", "OnlineInstallerScript"]);
22

33
new OnlineInstallerScript()
44
.name("ImgBurn")

Applications/Games/DC Universe Online/Online/script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ new OnlineInstallerScript()
1111
.category("Games")
1212
.executable("LaunchPad.exe")
1313
.preInstall(function(wine/*, wizard*/) {
14-
wine.vcrun2012();
15-
wine.d3dx9();
14+
wine.vcrun2012();
15+
wine.d3dx9();
1616
})
17-
.go();
17+
.go();

Applications/Games/The Elder Scrolls IV: Oblivion/Steam/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include(["Engines", "Wine", "QuickScript", "SteamScript"]);
1+
include(["Engines", "Wine", "QuickScript", "SteamScript"]);
22

33
new SteamScript()
44
.name("The Elder Scrolls IV: Oblivion")

Applications/Games/Total War Rome II/Steam/script.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ new SteamScript()
1212
.wineVersion(LATEST_STAGING_VERSION)
1313
.wineDistribution("staging")
1414
.postInstall(function(wine, wizard) {
15-
wine.d3dx9();
16-
wine.vcrun2005();
17-
wine.vcrun2008();
18-
wine.vcrun2010();
19-
wizard.message(tr("If you are experiencing issues with game (e.g. it crashes at start or rendering is broken), you can try to enable de OpenGL renderer, by modifying :\n\n gfx_device_type to 2\n\n in the {0}/drive_c/users/USERNAME/Application Data/The Creative Assembly/Rome2/scripts/preferences_script.txt ", wine.prefixDirectory));
20-
//N.B. : maybe need "LD_PRELOAD="libpthread.so.0 libGL.so.1" __GL_THREADED_OPTIMIZATIONS=1" for terrain glitches (OpenGL Mode)
15+
wine.d3dx9();
16+
wine.vcrun2005();
17+
wine.vcrun2008();
18+
wine.vcrun2010();
19+
wizard.message(tr("If you are experiencing issues with game (e.g. it crashes at start or rendering is broken), you can try to enable de OpenGL renderer, by modifying :\n\n gfx_device_type to 2\n\n in the {0}/drive_c/users/USERNAME/Application Data/The Creative Assembly/Rome2/scripts/preferences_script.txt ", wine.prefixDirectory));
20+
//N.B. : maybe need "LD_PRELOAD="libpthread.so.0 libGL.so.1" __GL_THREADED_OPTIMIZATIONS=1" for terrain glitches (OpenGL Mode)
2121
})
2222
.go();

Applications/Games/Wildlife Park 2/Local/script.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ new LocalInstallerScript()
99
.category("Games")
1010
.executable("WLP2.exe")
1111
.preInstall(function(wine, wizard) {
12-
wizard.message(tr("On first run the game might not go into full screen. If that happens go to options and set the resolution to 1280x960. You will be asked to close the game in order to apply the new settings. Click Yes. Once you start the game again you should see a window where you can set your game resolution to match your screen."));
13-
wine.quartz();
14-
var screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
15-
wine.setVirtualDesktop(screenSize.width, screenSize.height);
16-
})
12+
wizard.message(tr("On first run the game might not go into full screen. If that happens go to options and set the resolution to 1280x960. You will be asked to close the game in order to apply the new settings. Click Yes. Once you start the game again you should see a window where you can set your game resolution to match your screen."));
13+
wine.quartz();
14+
var screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
15+
wine.setVirtualDesktop(screenSize.width, screenSize.height);
16+
})
1717
.go();

Applications/Games/Wildlife Park 2/Steam/script.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ new SteamScript()
88
.author("Zemogiter")
99
.appId(264710)
1010
.preInstall(function(wine, wizard) {
11-
wizard.message(tr("On first run the game might not go into full screen. If that happens go to options and set the resolution to 1280x960. You will be asked to close the game in order to apply the new settings. Click Yes. Once you start the game again you should see a window where you can set your game resolution to match your screen."));
12-
wine.quartz();
13-
var screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
14-
wine.setVirtualDesktop(screenSize.width, screenSize.height);
11+
wizard.message(tr("On first run the game might not go into full screen. If that happens go to options and set the resolution to 1280x960. You will be asked to close the game in order to apply the new settings. Click Yes. Once you start the game again you should see a window where you can set your game resolution to match your screen."));
12+
wine.quartz();
13+
var screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
14+
wine.setVirtualDesktop(screenSize.width, screenSize.height);
1515
})
1616
.gameOverlay(false)
1717
.go();

Applications/Internet/Internet Explorer 6.0/Online/script.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ remove(wine.prefixDirectory + "/drive_c/" + wine.programFiles() + "/Internet Exp
3535

3636
["itircl", "itss", "jscript", "mlang", "mshtml", "msimtf", "shdoclc", "shdocvw", "shlwapi", "urlmon", "browseui", "iseng", "inetcpl"]
3737
.forEach(function(dll) {
38-
remove(wine.prefixDirectory + "/drive_c/windows/system32/" + dll + ".dll");
38+
remove(wine.prefixDirectory + "/drive_c/windows/system32/" + dll + ".dll");
3939
});
4040

4141
wine.run(setupFile).wait();
@@ -48,25 +48,25 @@ new CabExtract()
4848

4949
wine.run("iexplore", ["-unregserver"])
5050
.overrideDLL()
51-
.set("native", ["inseng"])
52-
.do()
51+
.set("native", ["inseng"])
52+
.do()
5353
.runInsidePrefix("IE 6.0 Full/IE6SETUP.EXE").wait()
5454
.overrideDLL()
55-
.set("native,builtin", [
56-
"inetcpl.cpl", "itircl", "itss", "jscript", "mlang",
57-
"mshtml", "msimtf", "shdoclc", "shdocvw", "shlwapi", "urlmon"
58-
]).do();
55+
.set("native,builtin", [
56+
"inetcpl.cpl", "itircl", "itss", "jscript", "mlang",
57+
"mshtml", "msimtf", "shdoclc", "shdocvw", "shlwapi", "urlmon"
58+
]).do();
5959

6060
var librairiesToRegister = ["actxprxy.dll", "browseui.dll", "browsewm.dll", "cdfview.dll", "ddraw.dll",
61-
"dispex.dll", "dsound.dll", "iedkcs32.dll", "iepeers.dll", "iesetup.dll", "imgutil.dll",
62-
"inetcomm.dll", "inetcpl.cpl", "inseng.dll", "isetup.dll", "jscript.dll", "laprxy.dll",
63-
"mlang.dll", "mshtml.dll", "mshtmled.dll", "msi.dll", "msident.dll",
64-
"msoeacct.dll", "msrating.dll", "mstime.dll", "msxml3.dll", "occache.dll",
65-
"ole32.dll", "oleaut32.dll", "olepro32.dll", "pngfilt.dll", "quartz.dll",
66-
"rpcrt4.dll", "rsabase.dll", "rsaenh.dll", "scrobj.dll", "scrrun.dll",
67-
"shdocvw.dll", "shell32.dll", "urlmon.dll", "vbscript.dll", "webcheck.dll",
68-
"wshcon.dll", "wshext.dll", "asctrls.ocx", "hhctrl.ocx", "mscomct2.ocx",
69-
"plugin.ocx", "proctexe.ocx", "tdc.ocx", "webcheck.dll", "wshom.ocx"];
61+
"dispex.dll", "dsound.dll", "iedkcs32.dll", "iepeers.dll", "iesetup.dll", "imgutil.dll",
62+
"inetcomm.dll", "inetcpl.cpl", "inseng.dll", "isetup.dll", "jscript.dll", "laprxy.dll",
63+
"mlang.dll", "mshtml.dll", "mshtmled.dll", "msi.dll", "msident.dll",
64+
"msoeacct.dll", "msrating.dll", "mstime.dll", "msxml3.dll", "occache.dll",
65+
"ole32.dll", "oleaut32.dll", "olepro32.dll", "pngfilt.dll", "quartz.dll",
66+
"rpcrt4.dll", "rsabase.dll", "rsaenh.dll", "scrobj.dll", "scrrun.dll",
67+
"shdocvw.dll", "shell32.dll", "urlmon.dll", "vbscript.dll", "webcheck.dll",
68+
"wshcon.dll", "wshext.dll", "asctrls.ocx", "hhctrl.ocx", "mscomct2.ocx",
69+
"plugin.ocx", "proctexe.ocx", "tdc.ocx", "webcheck.dll", "wshom.ocx"];
7070

7171
var progressBar = setupWizard.progressBar(tr("Please wait ..."));
7272
var i = 1;

Applications/Internet/Internet Explorer 7.0/Online/script.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,15 @@ var setupFile = new Resource()
198198
wine.run(setupFile).wait();
199199

200200
var librairiesToRegister = ["actxprxy.dll", "browseui.dll", "browsewm.dll", "cdfview.dll", "ddraw.dll",
201-
"dispex.dll", "dsound.dll", "iedkcs32.dll", "iepeers.dll", "iesetup.dll", "imgutil.dll",
202-
"inetcomm.dll", "inetcpl.cpl", "inseng.dll", "isetup.dll", "jscript.dll", "laprxy.dll",
203-
"mlang.dll", "mshtml.dll", "mshtmled.dll", "msi.dll", "msident.dll",
204-
"msoeacct.dll", "msrating.dll", "mstime.dll", "msxml3.dll", "occache.dll",
205-
"ole32.dll", "oleaut32.dll", "olepro32.dll", "pngfilt.dll", "quartz.dll",
206-
"rpcrt4.dll", "rsabase.dll", "rsaenh.dll", "scrobj.dll", "scrrun.dll",
207-
"shdocvw.dll", "shell32.dll", "urlmon.dll", "vbscript.dll", "webcheck.dll",
208-
"wshcon.dll", "wshext.dll", "asctrls.ocx", "hhctrl.ocx", "mscomct2.ocx",
209-
"plugin.ocx", "proctexe.ocx", "tdc.ocx", "webcheck.dll", "wshom.ocx"];
201+
"dispex.dll", "dsound.dll", "iedkcs32.dll", "iepeers.dll", "iesetup.dll", "imgutil.dll",
202+
"inetcomm.dll", "inetcpl.cpl", "inseng.dll", "isetup.dll", "jscript.dll", "laprxy.dll",
203+
"mlang.dll", "mshtml.dll", "mshtmled.dll", "msi.dll", "msident.dll",
204+
"msoeacct.dll", "msrating.dll", "mstime.dll", "msxml3.dll", "occache.dll",
205+
"ole32.dll", "oleaut32.dll", "olepro32.dll", "pngfilt.dll", "quartz.dll",
206+
"rpcrt4.dll", "rsabase.dll", "rsaenh.dll", "scrobj.dll", "scrrun.dll",
207+
"shdocvw.dll", "shell32.dll", "urlmon.dll", "vbscript.dll", "webcheck.dll",
208+
"wshcon.dll", "wshext.dll", "asctrls.ocx", "hhctrl.ocx", "mscomct2.ocx",
209+
"plugin.ocx", "proctexe.ocx", "tdc.ocx", "webcheck.dll", "wshom.ocx"];
210210

211211
var progressBar = setupWizard.progressBar("Please wait ...");
212212
var i = 1;

Applications/Office/Microsoft Office 2010/Local/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ new LocalInstallerScript()
77
.category("Office")
88
// exe set with WineShorcut
99
.postInstall(function(wine/*, wizard*/) {
10-
wine.overrideDLL()
10+
wine.overrideDLL()
1111
.set("native, builtin", ["riched20"])
1212
.do();
1313

0 commit comments

Comments
 (0)