Debian Codegraph @

tools/run-eslint.sh

raw
1 #!/bin/sh
2 # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
3 # SPDX-FileCopyrightText: 2020 Philip Chimento <[email protected]>
4 # SPDX-FileCopyrightText: 2025 Florian Müllner <[email protected]>
5
6 srcdir=$(dirname -- "$0")
7
8 cd $srcdir
9 [ ! -d node_modules ] && npm clean-install
10 # Link in project root to make imports work properly
11 [ ! -e ../node_modules ] && ln -s $srcdir/node_modules ../node_modules
12 npm run lint -- "$@"