4 Commits

Author SHA1 Message Date
Florian Müllner
c0df345bea tools: Update ci-run-eslint
We are currently still using eslint 8.x which has been unsupported
for quite a while. Update the ci-run-eslint script to a version
that uses the supported eslint 9.x.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/433>
2025-10-28 22:18:39 +01:00
Florian Müllner
a8b5705274 tools: Pin git node modules
Both changes in the config (like new/changes rules) and the eslint wrapper
(like updating to eslint 9.x) could require changes here, and therefore
require a conscious update rather than randomly breaking the CI.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/431>
2025-10-28 21:45:07 +01:00
Florian Müllner
7d41858bab tools: Switch to flat config for eslint
Both the .json and .yml config formats are deprecated in favor
of flat configs exported from eslint.config.js files.

The good news is that gjs' config is now available as a shared
config from the `eslint-config-gnome` package in World/javascript,
so we no longer have to copy the entire thing.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/408>
2025-07-30 17:44:23 +00:00
Florian Müllner
f1e0058e67 tools: Add run-eslint.sh script
The script is a small wrapper around the `ci-run-eslint` package
from World/javascript, which is a generalized and improved version
of the .gitlab-ci/run-eslint script from gnome-shell.

It only requires `npm` to be available, so it simplifies running
eslint locally quite a lot

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/408>
2025-07-30 17:44:23 +00:00