Skip to content

Commit

Permalink
added lint check to gitlab-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Jan 6, 2023
1 parent 180bb08 commit d8a0b49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ lint:
stage: lint
script:
# TODO: Use pre-commit run --all
- echo "lint"
- yarn lint

security-scan:
<<: *common-refs
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d8a0b49

Please sign in to comment.