From 7d49bf19818bdaa396b8ae1610ba5e8a7182c4d0 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 12 Oct 2023 00:05:48 +0000 Subject: [PATCH] chore: update lint config --- .jshintignore | 1 + package.json | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .jshintignore diff --git a/.jshintignore b/.jshintignore new file mode 100644 index 0000000..f8a704c --- /dev/null +++ b/.jshintignore @@ -0,0 +1 @@ +DELETEMEnode_modules/**/* diff --git a/package.json b/package.json index 7dba983..a96dac0 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,13 @@ "main": "_webi/", "scripts": { "fmt": "npm run prettier && npm run shfmt", - "lint": "npx jshint@2.x -c ./.jshintrc */*.js", + "lint": "npm run shellcheck && npm run jshint", + "test": "node _webi/test.js ./node/", + "----": "------------------------------------", + "jshint": "npx -p jshint@2.x -- jshint -c ./.jshintrc --exclude 'node_modules/**/*' */*.js */*/*.js", "prettier": "npx -p prettier@3.x -- prettier -w '**/*.{js,md,html}'", - "shfmt": "shfmt -w -i 4 -sr -ci -s ./", - "test": "node _webi/test.js ./node/" + "shellcheck": "shellcheck -s sh -S style --exclude=SC2154,SC2034 */*.sh", + "shfmt": "shfmt -w -i 4 -sr -ci -s ./" }, "repository": { "type": "git",