From caf2b5a146ea6b6f0e94fc0f55a29b4b4a20c743 Mon Sep 17 00:00:00 2001 From: Peter Fajdiga Date: Thu, 17 Apr 2025 21:11:24 +0200 Subject: [PATCH] Makefile: add ability to skip the linter --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9f94dbc..a42579c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ VERSION = $(shell grep '"Version":' ./package/metadata.json | grep -o '[0-9\.]*') -TESTS := true +CHECKS := true .PHONY: * @@ -12,13 +12,15 @@ npm-install: npm install lint: npm-install +ifeq (${CHECKS}, true) npx eslint ./src +endif lint-fix: npm-install npx eslint ./src --fix tests: -ifeq (${TESTS}, true) +ifeq (${CHECKS}, true) ./run-ts.sh ./src/tests endif