tooling: add 'npm run lint' (and config)

This commit is contained in:
AJ ONeal
2022-01-26 01:59:49 -07:00
parent 61157fa68d
commit 6ebcd76d3a
2 changed files with 25 additions and 1 deletions

View File

@@ -5,7 +5,8 @@
"description": "webinstall script repository",
"main": "_webi/",
"scripts": {
"prettier": "npx prettier@2 -w '**/*.{js,md,html}'",
"prettier": "npx prettier@2.x -w '**/*.{js,md,html}'",
"lint": "npx jshint@2.x -c ./.jshintrc */*.js",
"shfmt": "shfmt -w -i 4 -sr -s ./",
"test": "node _webi/test.js ./node/"
},