Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"next/core-web-vitals",
"prettier"
]
}
9 changes: 7 additions & 2 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ on: pull_request

jobs:
prettier:
name: Prettier
steps:
- run: npm ci

- run: npm run lint:prettier:check
eslint:
name: Eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -15,4 +20,4 @@ jobs:

- run: npm ci

- run: npm run lint:prettier:check
- run: npm run lint:eslint:check
4 changes: 3 additions & 1 deletion infra/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ async function getNewClient() {
return client;
}

export default {
const database = {
query,
getNewClient,
};

export default database;

function getSSLValues() {
if (process.env.POSTGRES_CA) {
return {
Expand Down
Loading
Loading