0ad/binaries/data/mods/mod
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
..
art Allow actors to override the entity's anchor type 2025-06-10 23:01:09 +02:00
audio Delete "Compact RelaxNG" / .rnc files 2021-04-14 07:39:36 +00:00
autostart Fix non-visual autostart, as well as client/host autostart. 2022-05-15 06:34:17 +00:00
fonts Fix trailing whitespace and add pre-commit hook 2025-06-15 20:08:48 +02:00
globalscripts Update sprintf.js library from 1.0.2 to 1.1.2. 2019-11-14 13:00:35 +00:00
gui Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
hwdetect Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
l10n Fix references in portable object templates 2024-07-25 08:53:04 +00:00
maps Move some engine required files to the mod mod. 2023-05-06 17:14:41 +00:00
shaders Removes USE_FOG define and switches to a shader parameter. 2025-10-11 08:11:35 +02:00
simulation/data Mod Interface: Enable setting territory visibility 2024-12-30 22:23:05 +01:00
tools/dap Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00