chore(tooling): use yarn for linting scripts (#149)

* chore(tooling): use yarn for linting scripts

* chore: fixes and tweaks

* chore(ci): more permissions

* chore: clean up, lint fixes

* chore: clean up, lint fixes

* chore: clean up, lint fixes

* chore(lint): fix yamllint errors and warnings

* chore(lint): lint fixes

* chore(lint): lint fixes
This commit is contained in:
2025-08-15 09:06:22 +03:00
committed by GitHub
parent 9c68e8b05c
commit 5f59851c7a
25 changed files with 193 additions and 2342 deletions

18
tools/install-ec.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Install editorconfig-checker if not already installed
set -euo pipefail
if command -v ec > /dev/null 2>&1; then
exit 0
fi
if ! command -v yarn > /dev/null 2>&1; then
echo "yarn is required to install editorconfig-checker" >&2
exit 1
fi
if yarn --version | grep -q '^1\.'; then
yarn global add --silent editorconfig-checker@"${VERSION:-latest}"
else
yarn dlx --quiet editorconfig-checker@"${VERSION:-latest}" --version > /dev/null
fi