0ad/binaries/data/mods/public/gui/common
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
..
campaigns Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
resources Add Han Chinese Techs, Auras 2022-02-19 16:56:31 +00:00
AlignmentHelper.js Refactor GUI object resizing JS code passages 2025-06-17 12:57:37 -05:00
color.js Fix eslint rule 'prefer-const' 2025-05-28 19:34:46 +02:00
colorFades.js Fix eslint rule 'prefer-const' in gui/common 2025-05-09 19:32:43 +02:00
functions_global_object.js Apply correct use of TextSize APIs in GUI 2025-06-26 17:11:24 -05:00
functions_utility.js Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
gamedescription.js Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
global.xml Remove redundant references to deleted .dtd files 2022-10-23 17:06:51 +00:00
hotkeys.js Fix eslint rule 'prefer-const' in gui/common 2025-05-09 19:32:43 +02:00
music.js Fix eslint rule 'prefer-const' in gui/common 2025-05-09 19:32:43 +02:00
network.js Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
Observable.js Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
OverlayCounter.js Implement keyDown event 2020-05-26 21:47:03 +00:00
OverlayCounterFPS.js Rewrite FPS/Realtime/Gametime/Ceasefire counters to use object semantics using class notation, refs #5387. 2019-10-27 12:39:28 +00:00
OverlayCounterManager.js Fix eslint rule 'prefer-const' in gui/common 2025-05-09 19:32:43 +02:00
OverlayCounterRealtime.js Rewrite FPS/Realtime/Gametime/Ceasefire counters to use object semantics using class notation, refs #5387. 2019-10-27 12:39:28 +00:00
Profilable.js Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
settings.js Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
setup.xml Revert "Fix element positions after new font rendering" 2025-06-11 08:10:57 -05:00
sprites.xml Add a new button style: 'BrownButton' 2025-09-28 22:59:27 +02:00
styles.xml Add a new button style: 'BrownButton' 2025-09-28 22:59:27 +02:00
tab_buttons.js Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
tab_buttons.xml Absorb duplicated summary tab code to the tab_buttons gui 2020-06-23 20:15:36 +00:00
timer.js Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
tooltips.js Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00