Skip to content

Commit

Permalink
chore(api): add eslint to lint-staged and npm run
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricss committed Jul 10, 2024
1 parent 8266b61 commit 7e9fd9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dist
.env
.eslintcache
.DS_Store
.elm-pages
elm-stuff
Expand Down
7 changes: 5 additions & 2 deletions packages/reva-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"prisma:generate:migration": "prisma migrate dev --create-only",
"cron": "npx [email protected] infra/cron.ts",
"cron-dev": "npx [email protected] infra/cron.ts | npx pino-pretty",
"eslint": "eslint modules infra --cache",
"lint-staged": "lint-staged",
"lint-all": "prettier --write \"{infra,modules}/**/*.{ts,md}\""
},
Expand Down Expand Up @@ -84,10 +85,12 @@
},
"lint-staged": {
"modules/**/*.{ts,md}": [
"prettier --write"
"prettier --write",
"eslint"
],
"infra/**/*.{ts,md}": [
"prettier --write"
"prettier --write",
"eslint"
]
},
"dependencies": {
Expand Down

0 comments on commit 7e9fd9b

Please sign in to comment.