Skip to content

Commit

Permalink
build: test and lint on CI (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
npwork authored Jan 26, 2022
1 parent 85c70d9 commit 826ac3b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["tsconfig.*?.json"]
},
"rules": {
"@typescript-eslint/no-floating-promises": ["error"],
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn format && yarn lint && yarn test
yarn format # && yarn test && yarn lint - will run on CI
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"start": "nx serve",
"build": "nx affected:build",
"build:libs": "nx run-many --target=build --projects=$(nx affected:libs --plain | sed 's/ /,/g')",
"lint": "nx affected:lint --parallel --quiet",
"lint": "nx affected:lint --parallel",
"format": "nx format:write",
"test": "nx affected:test --parallel --quiet",
"test": "nx affected:test --parallel",
"dep-graph": "nx dep-graph",
"generate-api": "openapi --exportCore false --client axios --input ./packages/api-client/src/api_schema.json --output ./packages/api-client/src/generated",
"prepare": "husky install"
Expand Down

0 comments on commit 826ac3b

Please sign in to comment.