From ab0ddcae3d5b08777e8ad9a29a155fa024f2f342 Mon Sep 17 00:00:00 2001 From: Andrew A Date: Sat, 18 Feb 2023 15:55:03 +0100 Subject: [PATCH] Add a lint script Make it easy to lint in stand-alone fashion. Note that I'm going with a direct call to ESLint, as using `grunt eslint` leads to warnings about a circular dependency (per trace it seems to originate in istanbul?) --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d9c94072..ee63ea08 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ }, "scripts": { "test": "grunt test", - "prepare": "grunt build" + "prepare": "grunt build", + "lint": "eslint ./src" } }