f1e0058e67
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>
9 lines
294 B
Bash
Executable File
9 lines
294 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
|
|
# SPDX-FileCopyrightText: 2020 Philip Chimento <philip.chimento@gmail.com>
|
|
# SPDX-FileCopyrightText: 2025 Florian Müllner <fmuellner@gnome.org>
|
|
|
|
cd $(dirname -- "$0")
|
|
[ ! -d node_modules ] && npm clean-install
|
|
npm run lint -- "$@"
|