0ad/binaries/data/mods/mod/gui
Dunedan 93ce94655d
Use @stylistic/brace-style for eslint
Up to now `eslint-plugin-brace-rules` was used to enforce a common brace
style for JavaScript code. This plugin was however updated the last time
over 9 years ago and will be incompatible with ESLint v10, as that
[removes `context.getSourceCode()`][1], the plugin relies on.

To keep the eslint config working with ESLint v10, this replaces
`eslint-plugin-brace-rules` with the [`@stylistic/brace-style`][2] rule
from `@stylistic/eslint-plugin`, a package we already use.

While `@stylistic/brace-style` doesn't offer an option to format braces
in exactly the same way as before, the "allman" style seems to be the
one closest to the existing code.

[1]: https://eslint.org/blog/2025/11/eslint-v10.0.0-alpha.0-released/#removed-deprecated-rule-context-members
[2]: https://eslint.style/rules/brace-style
2026-01-12 21:33:52 +01:00
..
colormixer Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
common Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
incompatible_mods Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
modio Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
modmod Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
msgbox Fix eslint rule 'prefer-const' in modmod 2025-05-06 13:49:13 +02:00
pregame Hide the cancel button in the modmod of the mod mod and the quit button when called from the public mod. 2017-12-12 16:06:52 +00:00
termsdialog Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
timedconfirmation Return a promise from most page-inits 2025-03-09 10:39:20 +01:00
gui.rng Enable modules in the GUI 2025-06-26 10:50:21 +02:00
gui_page.rng Delete "Compact RelaxNG" / .rnc files 2021-04-14 07:39:36 +00:00
page_atlas.xml Move some engine required files to the mod mod. 2023-05-06 17:14:41 +00:00
page_colormixer.xml Add color mixer 2022-11-01 11:46:14 +00:00
page_incompatible_mods.xml Do not allow to start pyrogenesis with incompatible mods 2021-05-09 13:53:25 +00:00
page_loading.xml Move some engine required files to the mod mod. 2023-05-06 17:14:41 +00:00
page_modhelp.xml mod.io support. 2018-04-22 18:14:45 +00:00
page_modio.xml mod.io support. 2018-04-22 18:14:45 +00:00
page_modmod.xml Fix a lot of whitespace in gui/. 2016-08-27 15:33:22 +00:00
page_msgbox.xml Move some utility functions from the public mod to the mod mod in preparation for upcoming commit. 2018-04-22 12:03:51 +00:00
page_pregame.xml Add mod selection mod. 2014-08-25 16:02:54 +00:00
page_termsdialog.xml Refactor lobby terms and conditions UI from 80dbd1f2a3 / D1568 to a new terms dialog UI and reuse that for mod.io and the UserReporter, refs #5257, #5218. 2018-09-14 15:14:48 +00:00
page_timedconfirmation.xml There have been quite a bit of number of questions how to change scale of the gui, because this option is hidden from the user. 2021-10-17 10:58:51 +00:00