diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 16aaaed..1e7fb4f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,7 +60,7 @@ lint: stage: lint script: # TODO: Use pre-commit run --all - - echo "lint" + - yarn lint security-scan: <<: *common-refs diff --git a/package.json b/package.json index 88c5a59..607d99e 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,9 @@ "fix:eslint": "eslint --fix", "fix:prettier": "prettier --write", "fix": "yarn fix:eslint '{*,**/*}.{cjs,ts}' && yarn fix:prettier '{*,**/*}.json'", + "prettier": "prettier --check --loglevel silent '{*,**/*}.{json,html}'", + "eslint": "eslint --quiet '{*,**/*}.{cjs,ts}'", + "lint": "yarn eslint && yarn prettier", "action:build": "rimraf build/action; tsc -p src/action/tsconfig.json", "action:package": "rimraf dist/action; ncc build --target es2021 --out dist/action --source-map --license licenses.txt build/action/action/main.js", "migrator": "node -r ./src/server/.env.cjs node_modules/.bin/node-pg-migrate --migration-filename-format timestamp",