Makefile: add ability to skip the linter

This commit is contained in:
Peter Fajdiga
2025-04-17 21:11:24 +02:00
parent b7f1876a84
commit caf2b5a146

View File

@@ -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