0ad/source
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
..
collada Fix some includes all over the place 2025-08-14 20:15:30 +02:00
dapinterface Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
graphics Remove LoadScripts from CSimualation2 2026-01-01 17:27:54 +01:00
gui Remove inconsistent override in CDropdown.h 2025-12-29 13:46:47 +01:00
i18n Reduces boost usage for strings 2025-10-16 09:17:05 +02:00
lib Switch main branch to Release 29 2025-12-18 18:16:11 +01:00
lobby List reason for role change in MUC 2026-01-09 19:07:45 +01:00
maths Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
mocks Fix some includes all over the place 2025-08-13 19:38:21 +02:00
network Return the value from GuiPoll 2025-12-17 13:39:17 +01:00
pch Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
ps Remove LoadScripts from CSimualation2 2026-01-01 17:27:54 +01:00
renderer Fixes uninitialized GPUSkinning in Atlas 2025-12-27 21:02:48 +01:00
rlinterface Always set scenario members in rl-interface reset 2025-12-13 18:58:17 +01:00
scriptinterface Don't forward declare CompiledModule 2025-11-13 19:50:38 +01:00
simulation2 Remove LoadScripts from CSimualation2 2026-01-01 17:27:54 +01:00
soundmanager SoundManager: reintroduce manual memory management 2025-10-13 20:42:32 +02:00
third_party Replace boost::filesystem std::filyestem 2025-10-29 09:56:32 +01:00
tools Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
CxxTestRunner.tpl Use return instead of exit in testrunner 2025-10-15 18:17:24 +02:00
main.cpp Replace LDR_* with PS::Loader::* in comments 2025-12-16 19:35:25 +01:00
test_setup.cpp Fix some includes in atlas 2025-08-21 14:18:38 +02:00